Skip to content

Commit f7be34a

Browse files
committed
Add uv into actions
1 parent efdd39a commit f7be34a

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

.github/workflows/python-tests.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,13 @@ jobs:
4141
python-version: "${{ matrix.python-version }}"
4242
allow-prereleases: true
4343

44-
- name: "Install nox"
44+
- name: "Install uv"
4545
run: |
46-
python -m pip install --upgrade pip nox
46+
python -m pip install --upgrade pip uv
4747
4848
- name: "Run tests and coverage via nox"
4949
run: |
50-
nox --session version_coverage-${{ matrix.python-version }}
50+
uv run nox --session version_coverage-${{ matrix.python-version }}
5151
5252
- name: "Save coverage artifact"
5353
uses: "actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b"
@@ -70,9 +70,9 @@ jobs:
7070
with:
7171
python-version: "3.12"
7272

73-
- name: "Install nox"
73+
- name: "Install uv"
7474
run: |
75-
python -m pip install --upgrade pip nox
75+
python -m pip install --upgrade pip uv
7676
7777
- name: "Download coverage artifacts"
7878
uses: "actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16"
@@ -82,7 +82,7 @@ jobs:
8282

8383
- name: "Compile coverage data, print report"
8484
run: |
85-
nox --session coverage_combine
85+
uv run nox --session coverage_combine
8686
export TOTAL=$(python -c "import json;print(json.load(open('coverage.json'))['totals']['percent_covered_display'])")
8787
echo "TOTAL=$TOTAL" >> $GITHUB_ENV
8888
echo "### Total coverage: ${TOTAL}%" >> $GITHUB_STEP_SUMMARY
@@ -99,10 +99,10 @@ jobs:
9999
with:
100100
python-version: "3.12"
101101

102-
- name: "Install nox"
102+
- name: "Install uv"
103103
run: |
104-
python -m pip install --upgrade pip nox
104+
python -m pip install --upgrade pip uv
105105
106106
- name: "Enforce strict type annotations with mypy"
107107
run: |
108-
nox --session mypy
108+
uv run nox --session mypy

0 commit comments

Comments
 (0)