Skip to content

Commit 6427e43

Browse files
committed
Install via uv in CI.
1 parent 809cf71 commit 6427e43

File tree

1 file changed

+13
-17
lines changed

1 file changed

+13
-17
lines changed

.github/workflows/ci.yml

+13-17
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,6 @@ on:
1212
- cron: "33 8 * * *"
1313
workflow_dispatch:
1414

15-
env:
16-
PIP_DISABLE_PIP_VERSION_CHECK: "1"
17-
PIP_NO_PYTHON_VERSION_WARNING: "1"
18-
1915
jobs:
2016
list:
2117
runs-on: ubuntu-latest
@@ -65,14 +61,14 @@ jobs:
6561
3.13
6662
pypy3.10
6763
allow-prereleases: true
68-
cache: pip
64+
6965
- name: Set up uv
70-
uses: hynek/setup-cached-uv@v2
71-
- name: Set up nox
72-
uses: wntrblm/[email protected]
66+
uses: astral-sh/setup-uv@v5
67+
with:
68+
enable-cache: true
7369

7470
- name: Run nox
75-
run: nox -s "${{ matrix.noxenv }}" -- ${{ matrix.posargs }}
71+
run: uvx nox -s "${{ matrix.noxenv }}" -- ${{ matrix.posargs }}
7672

7773
packaging:
7874
needs: ci
@@ -89,15 +85,15 @@ jobs:
8985
- uses: actions/checkout@v4
9086
with:
9187
submodules: "recursive"
92-
- name: Set up Python
93-
uses: actions/setup-python@v5
88+
89+
- name: Set up uv
90+
uses: astral-sh/setup-uv@v5
9491
with:
95-
cache: pip
96-
python-version: "3.x"
97-
- name: Install dependencies
98-
run: python -m pip install build
99-
- name: Create packages
100-
run: python -m build .
92+
enable-cache: true
93+
94+
- name: Build our distributions
95+
run: uv run --with 'build[uv]' -m build --installer=uv
96+
10197
- name: Publish to PyPI
10298
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
10399
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)