Skip to content

Commit 9dca87c

Browse files
committed
Use the setup-uv action for uv.
1 parent 3bebc7e commit 9dca87c

File tree

1 file changed

+14
-16
lines changed

1 file changed

+14
-16
lines changed

.github/workflows/ci.yml

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,14 @@ jobs:
1919
noxenvs: ${{ steps.noxenvs-matrix.outputs.noxenvs }}
2020
steps:
2121
- uses: actions/checkout@v5
22-
- name: Set up nox
23-
uses: wntrblm/[email protected]
22+
- name: Set up uv
23+
uses: astral-sh/setup-uv@v6
24+
with:
25+
enable-cache: true
2426
- id: noxenvs-matrix
2527
run: |
2628
echo >>$GITHUB_OUTPUT noxenvs=$(
27-
nox --list-sessions --json | jq '[.[].session]'
29+
uvx nox --list-sessions --json | jq '[.[].session]'
2830
)
2931
3032
ci:
@@ -58,12 +60,12 @@ jobs:
5860
allow-prereleases: true
5961

6062
- name: Set up uv
61-
uses: hynek/setup-cached-uv@v2
62-
- name: Set up nox
63-
uses: wntrblm/[email protected]
63+
uses: astral-sh/setup-uv@v6
64+
with:
65+
enable-cache: true
6466

6567
- name: Run nox
66-
run: nox -s "${{ matrix.noxenv }}" -- ${{ matrix.posargs }}
68+
run: uvx nox -s "${{ matrix.noxenv }}" -- ${{ matrix.posargs }}
6769

6870
packaging:
6971
needs: ci
@@ -78,17 +80,13 @@ jobs:
7880

7981
steps:
8082
- uses: actions/checkout@v5
81-
- name: Set up Python
82-
uses: actions/setup-python@v5
83-
with:
84-
python-version: "3.x"
8583
- name: Set up uv
86-
uses: hynek/setup-cached-uv@v2
87-
- name: Install dependencies
88-
run: uv pip install --system build
84+
uses: astral-sh/setup-uv@v6
85+
with:
86+
enable-cache: true
8987

90-
- name: Create packages
91-
run: python -m build .
88+
- name: Build our distributions
89+
run: uv run --frozen --with 'build[uv]' -m build --installer=uv
9290

9391
- name: Publish to PyPI
9492
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')

0 commit comments

Comments
 (0)