Skip to content

Commit

Permalink
Create nox-testing.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mlafarga committed May 27, 2024
1 parent 31457b7 commit 441d325
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/nox-testing.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: tests
on:
push:
pull_request:
workflow_dispatch:

jobs:
list_nox_test_sessions:
runs-on: ubuntu-latest
steps:
# (other steps before this: checkout code, install python and nox...)

- name: list all test sessions
id: set-matrix
run: echo "::set-output name=matrix::$(nox -s gha_list -- tests)"

# save the list into the outputs
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}

run_all_tests:
needs: list_nox_test_sessions
strategy:
fail-fast: false
matrix:
nox_session: ${{ fromJson(needs.list_nox_test_sessions.outputs.matrix) }}
name: Run nox session ${{ matrix.nox_session }}
runs-on: ubuntu-latest
steps:
# (other steps before this: checkout code, install python)
- run: nox -s "${{ matrix.nox_session }}"

0 comments on commit 441d325

Please sign in to comment.