@@ -19,12 +19,14 @@ jobs:
19
19
noxenvs : ${{ steps.noxenvs-matrix.outputs.noxenvs }}
20
20
steps :
21
21
- 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
24
26
- id : noxenvs-matrix
25
27
run : |
26
28
echo >>$GITHUB_OUTPUT noxenvs=$(
27
- nox --list-sessions --json | jq '[.[].session]'
29
+ uvx nox --list-sessions --json | jq '[.[].session]'
28
30
)
29
31
30
32
ci :
37
39
noxenv : ${{ fromJson(needs.list.outputs.noxenvs) }}
38
40
posargs : [""]
39
41
include :
40
- - noxenv : tests-3.12
42
+ - noxenv : tests-3.13
41
43
posargs : coverage github
42
44
43
45
steps :
@@ -63,12 +65,12 @@ jobs:
63
65
allow-prereleases : true
64
66
65
67
- 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
69
71
70
72
- name : Run nox
71
- run : nox -s "${{ matrix.noxenv }}" -- ${{ matrix.posargs }}
73
+ run : uvx nox -s "${{ matrix.noxenv }}" -- ${{ matrix.posargs }}
72
74
73
75
packaging :
74
76
needs : ci
@@ -85,17 +87,13 @@ jobs:
85
87
- uses : actions/checkout@v4
86
88
with :
87
89
submodules : " recursive"
88
- - name : Set up Python
89
- uses : actions/setup-python@v5
90
- with :
91
- python-version : " 3.x"
92
90
- 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
96
94
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
99
97
100
98
- name : Publish to PyPI
101
99
if : github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
0 commit comments