Skip to content

Commit ba6a006

Browse files
committed
CI: Use uv package manager
1 parent 1b20d9d commit ba6a006

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

.github/workflows/main.yml

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ jobs:
3535
env:
3636
PYTHON: ${{ matrix.python-version }}
3737
SPHINX: ${{ matrix.sphinx-version }}
38+
UV_SYSTEM_PYTHON: true
3839

3940
name: >
4041
Sphinx ${{ matrix.sphinx-version }}
@@ -48,22 +49,24 @@ jobs:
4849
uses: actions/setup-python@v6
4950
with:
5051
python-version: ${{ matrix.python-version }}
51-
architecture: x64
52-
cache: 'pip'
53-
cache-dependency-path: 'pyproject.toml'
52+
53+
- name: Set up uv
54+
uses: astral-sh/setup-uv@v7
55+
with:
56+
cache-dependency-glob: |
57+
pyproject.toml
58+
cache-suffix: ${{ matrix.python-version }}
59+
enable-cache: true
60+
version: "latest"
5461

5562
- name: Setup project
5663
run: |
5764
58-
# `setuptools 0.64.0` adds support for editable install hooks (PEP 660).
59-
# https://github.com/pypa/setuptools/blob/main/CHANGES.rst#v6400
60-
pip install "setuptools>=64" --upgrade
61-
6265
# Install package in editable mode.
63-
pip install --use-pep517 --prefer-binary --editable=.[develop,docs,test]
66+
uv pip install --editable='.[develop,docs,test]'
6467
6568
# Install specific Sphinx version, according to test matrix slot.
66-
pip install sphinx==${{ matrix.sphinx-version }}
69+
uv pip install 'sphinx==${{ matrix.sphinx-version }}'
6770
6871
- name: Run linter and software tests
6972
run: |

0 commit comments

Comments
 (0)