Skip to content

Commit

Permalink
feat: extras for the action
Browse files Browse the repository at this point in the history
Signed-off-by: Henry Schreiner <[email protected]>
  • Loading branch information
henryiii committed Mar 6, 2024
1 parent 419b98a commit 84a3f59
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
6 changes: 5 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

0 comments on commit 84a3f59

Please sign in to comment.