File tree Expand file tree Collapse file tree 2 files changed +11
-21
lines changed Expand file tree Collapse file tree 2 files changed +11
-21
lines changed Original file line number Diff line number Diff line change @@ -23,26 +23,19 @@ jobs:
2323
2424 steps :
2525 - uses : actions/checkout@v4
26- - name : " Set up Python"
27- uses : actions/setup-python@v5
28- with :
29- python-version : ${{ matrix.python-version }}
3026
31- # We do not use the cache action as uv is faster than the cache action.
32- - name : " Install dependencies"
33- run : |
34- curl -LsSf https://astral.sh/uv/install.sh | sh
35- uv pip install --system --upgrade --editable .[dev]
27+ - name : Install uv
28+ uses : astral-sh/setup-uv@v3
3629
3730 - name : " Lint"
3831 run : |
39- pre-commit run --all-files --hook-stage commit --verbose
40- pre-commit run --all-files --hook-stage push --verbose
41- pre-commit run --all-files --hook-stage manual --verbose
32+ uv run --all-extras --python=${{ matrix.python-version }} pre-commit run --all-files --hook-stage commit --verbose
33+ uv run --all-extras --python=${{ matrix.python-version }} pre-commit run --all-files --hook-stage push --verbose
34+ uv run --all-extras --python=${{ matrix.python-version }} pre-commit run --all-files --hook-stage manual --verbose
4235
4336 - name : " Run tests"
4437 run : |
45- pytest -s -vvv --cov-fail-under 100 --cov=src/ --cov=tests . --cov-report=xml
38+ uv run --all-extras --python=${{ matrix.python-version }} pytest -s -vvv --cov-fail-under 100 --cov=src/ --cov=tests . --cov-report=xml
4639
4740 - name : " Upload coverage to Codecov"
4841 uses : " codecov/codecov-action@v4"
Original file line number Diff line number Diff line change 3131 # https://github.com/stefanzweifel/git-auto-commit-action?tab=readme-ov-file#push-to-protected-branches
3232 token : ${{ secrets.RELEASE_PAT }}
3333
34- - name : " Set up Python"
35- uses : actions/setup-python@v5
36- with :
37- python-version : ${{ matrix.python-version }}
34+ - name : Install uv
35+ uses : astral-sh/setup-uv@v3
3836
3937 - name : " Calver calculate version"
4038 uses : StephaneBour/actions-calver@master
@@ -77,12 +75,11 @@ jobs:
7775
7876 - name : Build a binary wheel and a source tarball
7977 run : |
80- # Checkout the latest tag - the one we just created.
8178 git fetch --tags
8279 git checkout ${{ steps.tag_version.outputs.new_tag }}
83- python -m pip install build check-wheel-contents
84- python -m build --sdist --wheel --outdir dist/ .
85- check-wheel-contents dist/*.whl
80+ uv run pip install build check-wheel-contents
81+ uv run python -m build --sdist --wheel --outdir dist/ .
82+ uv run check-wheel-contents dist/*.whl
8683
8784 # We use PyPI trusted publishing rather than a PyPI API token.
8885 # See https://github.com/pypa/gh-action-pypi-publish/tree/release/v1/?tab=readme-ov-file#trusted-publishing.
You can’t perform that action at this time.
0 commit comments