-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
21 additions
and
41 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,7 +19,8 @@ env: | |
CI: true # insta snapshots behave differently on ci | ||
SCCACHE_GHA_ENABLED: "true" | ||
RUSTC_WRAPPER: "sccache" | ||
UV_CACHE_DIR: /tmp/.uv-cache | ||
# Pinned version for the uv package manager | ||
UV_VERSION: "0.4.18" | ||
|
||
jobs: | ||
# Check if changes were made to the relevant files. | ||
|
@@ -84,18 +85,12 @@ jobs: | |
- uses: actions/checkout@v4 | ||
- uses: mozilla-actions/[email protected] | ||
- name: Set up uv | ||
run: .github/script/install-uv.sh | ||
- name: "Set up Python" | ||
uses: actions/setup-python@v5 | ||
uses: astral-sh/setup-uv@v3 | ||
with: | ||
python-version: '3.12' | ||
- name: Restore uv cache | ||
uses: actions/cache@v4 | ||
with: | ||
path: ${{ env.UV_CACHE_DIR }} | ||
key: uv-${{ runner.os }}-${{ hashFiles('uv.lock') }} | ||
restore-keys: | | ||
uv-${{ runner.os }} | ||
version: ${{ env.UV_VERSION }} | ||
enable-cache: true | ||
- name: Install Python 3.12 | ||
run: uv python install 3.12 | ||
- name: Setup dependencies | ||
run: uv sync --locked | ||
- name: Type check with mypy | ||
|
@@ -104,8 +99,6 @@ jobs: | |
run: uv run ruff format --check | ||
- name: Lint with ruff | ||
run: uv run ruff check | ||
- name: Minimize uv cache | ||
run: uv cache prune --ci | ||
|
||
benches: | ||
name: Build benchmarks 🏋️ | ||
|
@@ -234,18 +227,12 @@ jobs: | |
- name: Install stable toolchain | ||
uses: dtolnay/rust-toolchain@stable | ||
- name: Set up uv | ||
run: .github/script/install-uv.sh | ||
- name: "Set up Python" | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.10' | ||
- name: Restore uv cache | ||
uses: actions/cache@v4 | ||
uses: astral-sh/setup-uv@v3 | ||
with: | ||
path: ${{ env.UV_CACHE_DIR }} | ||
key: uv-${{ runner.os }}-${{ hashFiles('uv.lock') }} | ||
restore-keys: | | ||
uv-${{ runner.os }} | ||
version: ${{ env.UV_VERSION }} | ||
enable-cache: true | ||
- name: Install Python 3.10 | ||
run: uv python install 3.10 | ||
- name: Setup dependencies | ||
run: uv sync --locked | ||
- name: Run python tests with coverage instrumentation | ||
|
@@ -255,8 +242,6 @@ jobs: | |
with: | ||
name: py-coverage | ||
path: coverage.xml | ||
- name: Minimize uv cache | ||
run: uv cache prune --ci | ||
|
||
coverage-py: | ||
name: Upload Python coverage 🐍 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters