Skip to content

Commit b9309aa

Browse files
derek73claude
andcommitted
Use uv in CI instead of pip
Everywhere else in this repo (AGENTS.md, local dev commands) uses `uv run`, and there's already a committed uv.lock -- CI was the odd one out, floating dev-dependency versions on every run via `pip install --group dev` instead of installing the exact locked versions. Switch to astral-sh/setup-uv + `uv sync --group dev`, and run every subsequent command via `uv run` for consistency and speed. build/twine aren't part of the dev dependency group, so they use `uv run --with <tool>` for ephemeral installs rather than adding packaging-only tools to the lockfile. Verified locally: uv sync, ruff, mypy, pytest, build --sdist, twine check, sphinx-build (html + doctest), and python -m doctest README.rst all pass. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
1 parent 218f7e8 commit b9309aa

1 file changed

Lines changed: 13 additions & 13 deletions

File tree

.github/workflows/python-package.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -28,21 +28,21 @@ jobs:
2828
uses: actions/setup-python@v6
2929
with:
3030
python-version: ${{ matrix.python-version }}
31+
- name: Install uv
32+
uses: astral-sh/setup-uv@v6
33+
with:
34+
enable-cache: true
3135
- name: Install dependencies
32-
run: |
33-
python -m pip install --upgrade "pip>=24.2" setuptools
34-
python -m pip install build
35-
python -m pip install twine
36-
python -m pip install --group dev
36+
run: uv sync --group dev
3737
- name: Run linter
38-
run: ruff check
38+
run: uv run ruff check
3939
- name: Check types
40-
run: mypy
40+
run: uv run mypy
4141
- name: Run Tests
4242
run: |
43-
pytest
44-
python -m build --sdist
45-
twine check dist/*
46-
sphinx-build -b html docs dist/docs
47-
sphinx-build -b doctest docs dist/doctest
48-
python -m doctest README.rst
43+
uv run pytest
44+
uv run --with build python -m build --sdist
45+
uv run --with twine twine check dist/*
46+
uv run sphinx-build -b html docs dist/docs
47+
uv run sphinx-build -b doctest docs dist/doctest
48+
uv run python -m doctest README.rst

0 commit comments

Comments
 (0)