Skip to content

Commit 316a54b

Browse files
committed
ci: use repository variables for retro test matrices
1 parent c526d6e commit 316a54b

File tree

1 file changed

+30
-20
lines changed

1 file changed

+30
-20
lines changed

.github/workflows/ci_release.yml

Lines changed: 30 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -130,39 +130,49 @@ jobs:
130130
strategy:
131131
fail-fast: false
132132
matrix:
133-
dpf:
134-
- {"version": "251", "standalone-suffix": ""}
135-
- {"version": "242", "standalone-suffix": ""}
136-
- {"version": "241", "standalone-suffix": ".sp01"}
137-
- {"version": "232", "standalone-suffix": ""}
138-
- {"version": "231", "standalone-suffix": ""}
139-
- {"version": "222", "standalone-suffix": ""}
133+
version:
134+
- ${{ fromJson(vars.ANSYS_VERSIONS_RETRO) }}
135+
standalone-suffix:
136+
- ""
137+
include:
138+
- version: "241"
139+
standalone-suffix: ".sp01"
140+
exclude:
141+
- version: "241"
142+
standalone-suffix: ""
140143
uses: ./.github/workflows/tests.yml
141144
with:
142-
ANSYS_VERSION: ${{ matrix.dpf.version }}
145+
ANSYS_VERSION: ${{ matrix.version }}
143146
python_versions: '["3.10"]'
144147
DOCSTRING: false
145-
standalone_suffix: ${{ matrix.dpf.standalone-suffix }}
148+
standalone_suffix: ${{ matrix.standalone-suffix }}
146149
secrets: inherit
147150

148151
tests-pydpf-post:
149152
name: "Test PyDPF-Post with ${{ matrix.dpf.version}}"
150153
strategy:
151154
fail-fast: false
152155
matrix:
153-
dpf:
154-
- {"version": "252", "standalone-suffix": "${{ github.event.inputs.standalone_branch_suffix || '' }}", "test_docstrings": "true"}
155-
- {"version": "251", "standalone-suffix": "", "test_docstrings": "false"}
156-
- {"version": "242", "standalone-suffix": "", "test_docstrings": "false"}
157-
- {"version": "241", "standalone-suffix": "", "test_docstrings": "false"}
158-
- {"version": "232", "standalone-suffix": "", "test_docstrings": "false"}
159-
- {"version": "231", "standalone-suffix": "", "test_docstrings": "false"}
160-
- {"version": "222", "standalone-suffix": "", "test_docstrings": "false"}
156+
version:
157+
- ${{ fromJson(vars.ANSYS_VERSIONS_RETRO) }}
158+
standalone-suffix:
159+
- ""
160+
test_docstrings:
161+
- "false"
162+
include:
163+
- version: ${{ vars.ANSYS_VERSION_LAST_RELEASED }}
164+
standalone-suffix: ${{ github.event.inputs.standalone_branch_suffix || '' }}
165+
test_docstrings": "true"
166+
- version: "241"
167+
standalone-suffix: ".sp01"
168+
exclude:
169+
- version: "241"
170+
standalone-suffix: ""
161171
uses: ./.github/workflows/pydpf-post.yml
162172
with:
163-
ANSYS_VERSION: ${{ matrix.dpf.version }}
164-
standalone_suffix: ${{ matrix.dpf.standalone-suffix }}
165-
test_docstrings: ${{ matrix.dpf.test_docstrings }}
173+
ANSYS_VERSION: ${{ matrix.version }}
174+
standalone_suffix: ${{ matrix.standalone-suffix }}
175+
test_docstrings: ${{ matrix.test_docstrings }}
166176
secrets: inherit
167177

168178
docker_tests:

0 commit comments

Comments
 (0)