Skip to content

Commit

Permalink
BEHAVIOR: switch from --extra to --group (#112)
Browse files Browse the repository at this point in the history
  • Loading branch information
redeboer authored Oct 28, 2024
1 parent 7d42813 commit 8fd92d1
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docnb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
UV_SYSTEM_PYTHON: 1
run: >-
uv run \
--extra doc \
--group doc \
--with tox \
tox -e doc
- if: hashFiles('docs/_build/html')
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/linkcheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@ jobs:
name: Run Sphinx linkcheck
run: >-
uv run \
--extra doc \
--group doc \
--with tox \
tox -e linkcheck
2 changes: 1 addition & 1 deletion .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
enable-cache: true
- name: Determine if repository is Python package
run: |
uv_command=$(uv pip install -e '.[sty]' > /dev/null && echo "uv run --extra sty" || echo uvx)
uv_command=$(uv pip install -e '.[sty]' > /dev/null && echo "uv run --group style" || echo uvx)
echo "UV_COMMAND=$uv_command" | tee -a "$GITHUB_ENV"
- name: Fetch pre-commit cache
uses: actions/cache@v4
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ jobs:
run: |
test_extras=''
for extra in ${{ inputs.additional-extras }}; do
test_extras="$test_extras --extra $extra"
test_extras="$test_extras --group $extra"
done
echo "extras=$test_extras" | tee -a $GITHUB_OUTPUT
- id: with
Expand All @@ -99,7 +99,7 @@ jobs:
name: Run tests with pytest
run: >-
uv run \
--extra test \
--group test \
${{ steps.extra.outputs.extras }} \
${{ steps.with.outputs.packages }} \
pytest \
Expand Down

0 comments on commit 8fd92d1

Please sign in to comment.