Skip to content

Commit 2280663

Browse files
authored
Merge pull request #215 from derek73/ci/use-uv-in-workflow
Use uv in CI instead of pip
2 parents 218f7e8 + b9309aa commit 2280663

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)