Allow tox workflow to receive an optional environment argument (#238) #284
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: tox | |
on: | |
push: | |
branches: # any integration branch but not tag | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
test: | |
# tests reusable tox workflow | |
uses: ./.github/workflows/tox.yml | |
with: | |
default_python: "3.10" | |
jobs_producing_coverage: 0 | |
max_python: "3.13" | |
min_python: "3.10" | |
run_post: echo 'Running post' | |
run_pre: echo 'Running pre' | |
other_names: | | |
docs | |
lint | |
check: # This job does nothing and is only used for the branch protection | |
if: always() | |
needs: | |
- test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Decide whether the needed jobs succeeded or failed | |
uses: re-actors/alls-green@release/v1 | |
with: | |
jobs: ${{ toJSON(needs) }} | |
push: | |
if: github.event_name == 'push' | |
uses: ./.github/workflows/push.yml | |
secrets: inherit |