From 644de08aa0425240117b503178545d8c84678709 Mon Sep 17 00:00:00 2001 From: Henry Schreiner Date: Wed, 6 Mar 2024 17:20:27 -0500 Subject: [PATCH] feat: extras for the action Signed-off-by: Henry Schreiner --- .github/workflows/action.yml | 3 ++- action.yml | 6 +++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/action.yml b/.github/workflows/action.yml index 65b15a63..100759e5 100644 --- a/.github/workflows/action.yml +++ b/.github/workflows/action.yml @@ -42,4 +42,5 @@ jobs: - uses: ./ with: python-versions: "3.4, 3.5, 3.6, 3.7, 3.8, 3.9, 3.10, 3.11, 3.12, pypy-2.7, pypy-3.7, pypy-3.8, pypy-3.9, pypy-3.10" - - run: nox --non-interactive --error-on-missing-interpreter --session github_actions_all_tests + extras: uv + - run: nox --non-interactive --error-on-missing-interpreter --session github_actions_all_tests --default-venv-backend uv diff --git a/action.yml b/action.yml index f0392ba0..2255a437 100644 --- a/action.yml +++ b/action.yml @@ -5,6 +5,10 @@ inputs: description: "comma-separated list of python versions to install" required: false default: "3.8, 3.9, 3.10, 3.11, 3.12, pypy-3.9, pypy-3.10" + extras: + description: "comma-separated list of extras to install" + required: false + default: "" branding: icon: package color: blue @@ -31,5 +35,5 @@ runs: allow-prereleases: true - name: "Install nox" - run: pipx install --python "${{ steps.allpython.outputs.python-path }}" '${{ github.action_path }}' + run: pipx install --python "${{ steps.allpython.outputs.python-path }}" "${{ github.action_path }}${{ inputs.extras != '' && format('[{0}]', inputs.extras) || ''}}" shell: bash