@@ -3,23 +3,39 @@ name: nox
33
44" on " :
55 workflow_call :
6- inputs :
7- python-versions :
8- description : Space-seperated list of python version(s) to run nox sessions with
9- type : string
10- required : false
11- default : " 3.12"
12- sessions :
13- description : Space-seperated list of sessions
14- type : string
15- required : false
16- default : " static formatters_check typing spelling checkers(rstcheck) checkers(rst-yamllint) checkers(docs-build) actionlint"
17-
186
197jobs :
208 nox :
219 runs-on : ubuntu-latest
22- name : " Run nox sessions"
10+ strategy :
11+ fail-fast : false
12+ matrix :
13+ include :
14+ # Inputs:
15+ # session: name of session
16+ # python-versions: comma-separated list of Python versions to install
17+ # extra-args (optional): extra arguments to pass to nox session.
18+ - session : static
19+ python-versions : " 3.12"
20+ - session : formatters_check
21+ python-versions : " 3.12"
22+ - session : typing
23+ python-versions : " 3.12"
24+ - session : spelling
25+ python-versions : " 3.12"
26+ - session : " checkers(rstcheck)"
27+ python-versions : " 3.12"
28+ - session : " checkers(rst-yamllint)"
29+ python-versions : " 3.12"
30+ - session : " checkers(docs-build)"
31+ python-versions : " 3.12"
32+ - session : " actionlint"
33+ python-versions : " 3.12"
34+ - session : " pip-compile"
35+ extra-args : " --check"
36+ python-versions : " 3.12"
37+
38+ name : " Run nox ${{ matrix.session }} session"
2339 steps :
2440 - name : Check out repo
2541 uses : actions/checkout@v5
@@ -33,14 +49,12 @@ jobs:
3349 uses : x1101/github-action-run-nox@ca8b16f76c53a04b14952620e7a4ac5c7dc29812
3450 with :
3551 sessions : clone-core
52+ force-pythons : " ${{ inputs.python-versions }}"
3653
37- - name : " Run nox sessions "
54+ - name : " Run nox session "
3855 uses : x1101/github-action-run-nox@ca8b16f76c53a04b14952620e7a4ac5c7dc29812
3956 with :
40- sessions : " ${{ inputs.sessions }}"
57+ sessions : " ${{ matrix.sessions }}"
58+ extra-args : ${{ inputs.extra-args || '' }}
59+ force-pythons : " ${{ inputs.python-versions }}"
4160
42- - name : " Run Sessions with Args"
43- uses : x1101/github-action-run-nox@ca8b16f76c53a04b14952620e7a4ac5c7dc29812
44- with :
45- sessions : " pip-compile"
46- extra-args : " --check"
0 commit comments