Skip to content

Commit

Permalink
FIX: add --no-dev flag if using --group flag (#115)
Browse files Browse the repository at this point in the history
  • Loading branch information
redeboer authored Oct 28, 2024
1 parent 52845eb commit 9bd72cc
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/docnb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ jobs:
run: >-
uv run \
--group doc \
--no-dev \
--with tox \
tox -e doc
- if: hashFiles('docs/_build/html')
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/linkcheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,6 @@ jobs:
run: >-
uv run \
--group doc \
--no-dev \
--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 && uv sync --group style && echo "uv run --group style" || echo uvx)
uv_command=$(uv pip install -e '.[sty]' > /dev/null && uv sync --group style --no-dev && echo "uv run --group style --no-dev" || echo uvx)
echo "UV_COMMAND=$uv_command" | tee -a "$GITHUB_ENV"
- name: Fetch pre-commit cache
uses: actions/cache@v4
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ jobs:
uv run \
--group test \
${{ steps.extra.outputs.extras }} \
--no-dev \
${{ steps.with.outputs.packages }} \
pytest \
${{ steps.coverage.outputs.flags }} \
Expand Down

0 comments on commit 9bd72cc

Please sign in to comment.