Skip to content

Commit 1453ae8

Browse files
Merge pull request #2411 from VWS-Python/rm-all-extras
Use environment variables to remove duplication in uv commands
2 parents cd4fa55 + 2cf3c49 commit 1453ae8

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
run: |
3333
# We run tests against "." and not the tests directory as we test the README
3434
# and documentation.
35-
uv run --all-extras --python=${{ matrix.python-version }} pytest -s -vvv --cov-fail-under 100 --cov=src/ --cov=tests/ . --cov-report=xml
35+
uv run --extra=dev --python=${{ matrix.python-version }} pytest -s -vvv --cov-fail-under 100 --cov=src/ --cov=tests/ . --cov-report=xml
3636
3737
- name: "Upload coverage to Codecov"
3838
uses: "codecov/codecov-action@v4"

.github/workflows/lint.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,11 @@ jobs:
3030

3131
- name: "Lint"
3232
run: |
33-
uv run --all-extras --python=${{ matrix.python-version }} pre-commit run --all-files --hook-stage pre-commit --verbose
34-
uv run --all-extras --python=${{ matrix.python-version }} pre-commit run --all-files --hook-stage pre-push --verbose
35-
uv run --all-extras --python=${{ matrix.python-version }} pre-commit run --all-files --hook-stage manual --verbose
33+
uv run --extra=dev pre-commit run --all-files --hook-stage pre-commit --verbose
34+
uv run --extra=dev pre-commit run --all-files --hook-stage pre-push --verbose
35+
uv run --extra=dev pre-commit run --all-files --hook-stage manual --verbose
36+
env:
37+
UV_PYTHON: ${{ matrix.python-version }}
3638

3739
- uses: pre-commit-ci/lite-action@v1.0.3
3840
if: always()

0 commit comments

Comments
 (0)