Skip to content

Commit 966bbd2

Browse files
authored
ci: use nox's uv integration (#1057)
1 parent 58aaa7f commit 966bbd2

5 files changed

Lines changed: 29 additions & 6 deletions

File tree

.github/workflows/docs.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,8 @@ jobs:
2727
python-version: "3.9"
2828
cache: "pip"
2929

30+
- uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
31+
name: Setup uv
32+
3033
- name: Build documentation
31-
run: pipx run nox --error-on-missing-interpreters -s docs
34+
run: pipx run nox -s docs

.github/workflows/lint.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,11 @@ jobs:
3737
python-version: "3.10"
3838
cache: "pip"
3939

40+
- uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
41+
name: Setup uv
42+
4043
- name: Run `nox -s lint`
41-
run: pipx run nox --error-on-missing-interpreters -s lint -- --show-diff-on-failure
44+
run: pipx run nox -s lint -- --show-diff-on-failure
4245

4346
build:
4447
name: Build sdist and wheel
@@ -54,11 +57,14 @@ jobs:
5457
with:
5558
persist-credentials: false
5659

60+
- uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
61+
name: Setup uv
62+
5763
- name: Build
58-
run: pipx run build
64+
run: uv build
5965

6066
- name: Build
61-
run: pipx run twine check --strict ./dist/*
67+
run: uvx twine check --strict ./dist/*
6268

6369
- name: Archive files
6470
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0

.github/workflows/perf.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
3.14
3434
3535
- name: Install uv
36-
uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
36+
uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
3737

3838
- name: Setup ASV
3939
run: |

.github/workflows/publish.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ jobs:
3838
persist-credentials: false
3939
fetch-depth: 0
4040

41+
- uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
42+
name: Setup uv
43+
4144
- name: Check ref is the commit SHA
4245
# require SHA as tags and branches are mutable
4346
run: test "${INPUTS_REF}"

.github/workflows/test.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,11 @@ jobs:
4444
name: Install Python ${{ matrix.python_version }}
4545
with:
4646
python-version: ${{ matrix.python_version }}
47-
cache: "pip"
4847
allow-prereleases: true
4948

49+
- uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
50+
name: Setup uv
51+
5052
- name: Run nox
5153
run: pipx run nox -s tests
5254
env:
@@ -67,6 +69,9 @@ jobs:
6769
python-version: "3.14"
6870
cache: "pip"
6971

72+
- uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
73+
name: Setup uv
74+
7075
- name: Run nox
7176
run: pipx run nox -s property_tests
7277

@@ -89,6 +94,9 @@ jobs:
8994
python-version: "3.14"
9095
cache: "pip"
9196

97+
- uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
98+
name: Setup uv
99+
92100
- name: Run nox
93101
env:
94102
MATRIX_PROJECT: ${{ matrix.project }}
@@ -108,6 +116,9 @@ jobs:
108116
python-version: "3.14"
109117
cache: "pip"
110118

119+
- uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
120+
name: Setup uv
121+
111122
- name: Run nox
112123
run: pipx run nox -s test_pickle
113124

0 commit comments

Comments
 (0)