From 8fd92d1674dd5bac49839999c799e50fe9fb2d87 Mon Sep 17 00:00:00 2001 From: Remco de Boer <29308176+redeboer@users.noreply.github.com> Date: Mon, 28 Oct 2024 09:25:10 +0100 Subject: [PATCH] BEHAVIOR: switch from `--extra` to `--group` (#112) --- .github/workflows/docnb.yml | 2 +- .github/workflows/linkcheck.yml | 2 +- .github/workflows/pre-commit.yml | 2 +- .github/workflows/pytest.yml | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/docnb.yml b/.github/workflows/docnb.yml index fbdd0bc..79ed828 100644 --- a/.github/workflows/docnb.yml +++ b/.github/workflows/docnb.yml @@ -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') diff --git a/.github/workflows/linkcheck.yml b/.github/workflows/linkcheck.yml index 2151a2c..bac7f20 100644 --- a/.github/workflows/linkcheck.yml +++ b/.github/workflows/linkcheck.yml @@ -35,6 +35,6 @@ jobs: name: Run Sphinx linkcheck run: >- uv run \ - --extra doc \ + --group doc \ --with tox \ tox -e linkcheck diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index 9a9509c..95222a7 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -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 diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index 3696fb0..9b2103e 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -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 @@ -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 \