File tree Expand file tree Collapse file tree 2 files changed +14
-15
lines changed Expand file tree Collapse file tree 2 files changed +14
-15
lines changed Original file line number Diff line number Diff line change 3939 needs : generate-matrix
4040 strategy :
4141 fail-fast : false
42- matrix :
43- os :
44- - macos-latest
45- - ubuntu-latest
46- - windows-latest
47- include : ${{ fromJson(needs.generate-matrix.outputs.matrix) }}
42+ matrix : ${{ fromJSON(needs.generate-matrix.outputs.matrix) }}
4843 steps :
4944 - uses : actions/checkout@v4
5045
5651
5752 - name : Run tests
5853 run : |
59- uv run nox --session "tests(python='${{ matrix.python-version }}', django='${{ matrix.django-version }}')" -- --slow
54+ uv run nox --session "tests(python='${{ matrix.python-version }}', django='${{ matrix.django-version }}')"
Original file line number Diff line number Diff line change @@ -117,13 +117,17 @@ def lint(session):
117117@nox .session
118118def gha_matrix (session ):
119119 sessions = session .run ("nox" , "-l" , "--json" , silent = True )
120- matrix = [
121- {
122- "python-version" : session ["python" ],
123- "django-version" : session ["call_spec" ]["django" ],
124- }
125- for session in json .loads (sessions )
126- if session ["name" ] == "tests"
127- ]
120+ matrix = {
121+ "include" : [
122+ {
123+ "django-version" : session ["call_spec" ]["django" ],
124+ "os" : os ,
125+ "python-version" : session ["python" ],
126+ }
127+ for session in json .loads (sessions )
128+ for os in ["macos-latest" , "ubuntu-latest" , "windows-latest" ]
129+ if session ["name" ] == "tests"
130+ ]
131+ }
128132 with Path (os .environ ["GITHUB_OUTPUT" ]).open ("a" ) as fh :
129133 print (f"matrix={ matrix } " , file = fh )
You can’t perform that action at this time.
0 commit comments