@@ -19,12 +19,14 @@ jobs:
19
19
noxenvs : ${{ steps.noxenvs-matrix.outputs.noxenvs }}
20
20
steps :
21
21
- uses : actions/checkout@v5
22
- - name : Set up nox
23
-
22
+ - name : Set up uv
23
+ uses : astral-sh/setup-uv@v6
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 :
@@ -58,12 +60,12 @@ jobs:
58
60
allow-prereleases : true
59
61
60
62
- name : Set up uv
61
- uses : hynek /setup-cached- uv@v2
62
- - name : Set up nox
63
-
63
+ uses : astral-sh /setup-uv@v6
64
+ with :
65
+ enable-cache : true
64
66
65
67
- name : Run nox
66
- run : nox -s "${{ matrix.noxenv }}" -- ${{ matrix.posargs }}
68
+ run : uvx nox -s "${{ matrix.noxenv }}" -- ${{ matrix.posargs }}
67
69
68
70
packaging :
69
71
needs : ci
@@ -78,17 +80,13 @@ jobs:
78
80
79
81
steps :
80
82
- uses : actions/checkout@v5
81
- - name : Set up Python
82
- uses : actions/setup-python@v5
83
- with :
84
- python-version : " 3.x"
85
83
- 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
89
87
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
92
90
93
91
- name : Publish to PyPI
94
92
if : github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
0 commit comments