@@ -19,12 +19,14 @@ jobs:
1919 noxenvs : ${{ steps.noxenvs-matrix.outputs.noxenvs }}
2020 steps :
2121 - uses : actions/checkout@v4
22- - name : Set up nox
23- 22+ - name : Set up uv
23+ uses : astral-sh/setup-uv@v5
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 :
3739 noxenv : ${{ fromJson(needs.list.outputs.noxenvs) }}
3840 posargs : [""]
3941 include :
40- - noxenv : tests-3.12
42+ - noxenv : tests-3.13
4143 posargs : coverage github
4244
4345 steps :
@@ -63,12 +65,12 @@ jobs:
6365 allow-prereleases : true
6466
6567 - name : Set up uv
66- uses : hynek /setup-cached- uv@v2
67- - name : Set up nox
68- 68+ uses : astral-sh /setup-uv@v5
69+ with :
70+ enable-cache : true
6971
7072 - name : Run nox
71- run : nox -s "${{ matrix.noxenv }}" -- ${{ matrix.posargs }}
73+ run : uvx nox -s "${{ matrix.noxenv }}" -- ${{ matrix.posargs }}
7274
7375 packaging :
7476 needs : ci
@@ -85,17 +87,13 @@ jobs:
8587 - uses : actions/checkout@v4
8688 with :
8789 submodules : " recursive"
88- - name : Set up Python
89- uses : actions/setup-python@v5
90- with :
91- python-version : " 3.x"
9290 - name : Set up uv
93- uses : hynek /setup-cached- uv@v2
94- - name : Install dependencies
95- run : uv pip install --system build
91+ uses : astral-sh /setup-uv@v5
92+ with :
93+ enable-cache : true
9694
97- - name : Create packages
98- run : python - m build .
95+ - name : Build our distributions
96+ run : uv run --frozen --with 'build[uv]' - m build --installer=uv
9997
10098 - name : Publish to PyPI
10199 if : github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
0 commit comments