Skip to content

Commit ccbd142

Browse files
committed
tests.yml
1 parent a67a7ac commit ccbd142

File tree

1 file changed

+154
-36
lines changed

1 file changed

+154
-36
lines changed

.github/workflows/tests.yml

Lines changed: 154 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -9,77 +9,187 @@ jobs:
99
tests:
1010
name: ${{ matrix.os }}-${{ matrix.compiler }}-${{ matrix.version }}-python-${{ matrix.python-version }}-${{ matrix.castxml-epic }}
1111
runs-on: ${{ matrix.os }}
12-
1312
strategy:
1413
fail-fast: false
1514
matrix:
1615
include:
17-
- os: ubuntu-20.04
16+
- os: ubuntu-22.04
17+
compiler: gcc
18+
version: "11"
19+
python-version: "3.10"
20+
castxml: "castxml"
21+
castxml-epic: 0
22+
cppstd: "-std=c++17"
23+
24+
- os: ubuntu-22.04
25+
compiler: gcc
26+
version: "11"
27+
python-version: "3.10"
28+
castxml: "castxml"
29+
castxml-epic: 0
30+
cppstd: "-std=c++17"
31+
32+
- os: ubuntu-22.04
33+
compiler: gcc
34+
version: "11"
35+
python-version: "3.10"
36+
castxml: "castxml"
37+
castxml-epic: 0
38+
cppstd: "-std=c++17"
39+
40+
- os: ubuntu-22.04
41+
compiler: gcc
42+
version: "11"
43+
python-version: "3.10"
44+
castxml: "castxml"
45+
castxml-epic: 0
46+
cppstd: "-std=c++17"
47+
48+
- os: ubuntu-22.04
1849
compiler: gcc
19-
version: "9"
20-
python-version: "3.7"
50+
version: "11"
51+
python-version: "3.11"
2152
castxml: "castxml"
2253
castxml-epic: 0
23-
cppstd: "-std=c++98"
54+
cppstd: "-std=c++17"
55+
56+
- os: ubuntu-22.04
57+
compiler: gcc
58+
version: "11"
59+
python-version: "3.10"
60+
castxml: "castxml"
61+
castxml-epic: 1
62+
cppstd: "-std=c++17"
2463

25-
- os: ubuntu-20.04
64+
- os: ubuntu-22.04
2665
compiler: gcc
27-
version: "9"
28-
python-version: "3.8"
66+
version: "11"
67+
python-version: "3.10"
68+
castxml: "castxml"
69+
castxml-epic: 1
70+
cppstd: "-std=c++11"
71+
72+
- os: ubuntu-22.04-arm64
73+
compiler: gcc
74+
version: "11"
75+
python-version: "3.10"
2976
castxml: "castxml"
3077
castxml-epic: 0
31-
cppstd: "-std=c++98"
78+
cppstd: "-std=c++17"
3279

33-
- os: ubuntu-20.04
80+
- os: ubuntu-22.04-arm64
3481
compiler: gcc
35-
version: "9"
36-
python-version: "3.9"
82+
version: "11"
83+
python-version: "3.10"
3784
castxml: "castxml"
3885
castxml-epic: 0
39-
cppstd: "-std=c++98"
86+
cppstd: "-std=c++17"
4087

41-
- os: ubuntu-20.04
88+
- os: ubuntu-22.04-arm64
4289
compiler: gcc
43-
version: "9"
90+
version: "11"
4491
python-version: "3.10"
4592
castxml: "castxml"
4693
castxml-epic: 0
47-
cppstd: "-std=c++98"
94+
cppstd: "-std=c++17"
4895

49-
- os: ubuntu-20.04
96+
- os: ubuntu-22.04-arm64
5097
compiler: gcc
51-
version: "9"
98+
version: "11"
5299
python-version: "3.11"
53100
castxml: "castxml"
54101
castxml-epic: 0
55-
cppstd: "-std=c++98"
102+
cppstd: "-std=c++17"
56103

57-
- os: ubuntu-20.04
104+
- os: ubuntu-22.04-arm64
58105
compiler: gcc
59-
version: "9"
60-
python-version: "3.8"
106+
version: "11"
107+
python-version: "3.10"
61108
castxml: "castxml"
62109
castxml-epic: 1
63-
cppstd: "-std=c++98"
110+
cppstd: "-std=c++17"
64111

65-
- os: ubuntu-20.04
112+
- os: ubuntu-22.04-arm64
66113
compiler: gcc
67-
version: "9"
68-
python-version: "3.8"
114+
version: "11"
115+
python-version: "3.10"
69116
castxml: "castxml"
70117
castxml-epic: 1
71118
cppstd: "-std=c++11"
72119

120+
- os: ubuntu-24.04-arm64
121+
compiler: gcc
122+
version: "14"
123+
python-version: "3.12"
124+
castxml: "castxml"
125+
castxml-epic: 0
126+
cppstd: "-std=c++17"
127+
128+
- os: ubuntu-24.04-arm64
129+
compiler: gcc
130+
version: "14"
131+
python-version: "3.12"
132+
castxml: "castxml"
133+
castxml-epic: 0
134+
cppstd: "-std=c++17"
135+
136+
- os: ubuntu-24.04-arm64
137+
compiler: gcc
138+
version: "14"
139+
python-version: "3.12"
140+
castxml: "castxml"
141+
castxml-epic: 0
142+
cppstd: "-std=c++17"
143+
144+
- os: ubuntu-24.04-arm64
145+
compiler: gcc
146+
version: "14"
147+
python-version: "3.12"
148+
castxml: "castxml"
149+
castxml-epic: 0
150+
cppstd: "-std=c++17"
151+
152+
- os: ubuntu-24.04-arm64
153+
compiler: gcc
154+
version: "14"
155+
python-version: "3.12"
156+
castxml: "castxml"
157+
castxml-epic: 0
158+
cppstd: "-std=c++17"
159+
160+
- os: ubuntu-24.04-arm64
161+
compiler: gcc
162+
version: "14"
163+
python-version: "3.12"
164+
castxml: "castxml"
165+
castxml-epic: 1
166+
cppstd: "-std=c++17"
167+
168+
- os: ubuntu-24.04-arm64
169+
compiler: gcc
170+
version: "14"
171+
python-version: "3.12"
172+
castxml: "castxml"
173+
castxml-epic: 1
174+
cppstd: "-std=c++17"
175+
73176
- os: macos-13
74177
compiler: xcode
75178
version: "default"
76-
python-version: "3.8"
179+
python-version: "3.10"
77180
castxml: "castxml"
78181
castxml-epic: 0
79-
cppstd: "-std=c++98"
182+
cppstd: "-std=c++17"
80183

184+
- os: macos-15
185+
compiler: xcode
186+
version: "default"
187+
python-version: "3.12"
188+
castxml: "castxml"
189+
castxml-epic: 0
190+
cppstd: "-std=c++17"
81191
steps:
82-
- uses: actions/checkout@v3
192+
- uses: actions/checkout@v4
83193
- name: Set up Python ${{ matrix.python-version }}
84194
uses: actions/setup-python@v4
85195
with:
@@ -91,15 +201,23 @@ jobs:
91201
pip install '.[test]'
92202
- name: Run pycodestyle
93203
run: pycodestyle . --exclude=docs
94-
- name: Setup castxml for Linux
95-
if: matrix.os == 'ubuntu-20.04' && matrix.castxml == 'castxml'
204+
- name: Setup castxml for Linux x86_64
205+
if: (matrix.os == 'ubuntu-24.04' || matrix.os == 'ubuntu-22.04')
206+
run: |
207+
wget -q -O - https://github.com/CastXML/CastXMLSuperbuild/releases/download/v0.6.11/castxml-linux.tar.gz | tar zxf - -C ~/
208+
- name: Setup castxml for Linux arm64/aarch64
209+
if: (matrix.os == 'ubuntu-24.04-arm' || matrix.os == 'ubuntu-22.04-arm')
210+
run: |
211+
wget -q -O - https://github.com/CastXML/CastXMLSuperbuild/releases/download/v0.6.11/castxml-linux-aarch64.tar.gz | tar zxf - -C ~/
212+
- name: Setup castxml for Mac x86_64
213+
if: matrix.os == 'macos-15' && matrix.arch == 'x86_64'
96214
run: |
97-
wget -q -O - https://data.kitware.com/api/v1/file/hashsum/sha512/bdbb67a10c5f8d1b738cd19cb074f409d4803e8077cb8c1072ef4eaf738fa871a73643f9c8282d58cae28d188df842c82ad6620b6d590b0396a0172a27438dce/download | tar zxf - -C ~/
98-
- name: Setup castxml for Mac
99-
if: matrix.os == 'macos-13'
215+
wget -q -O - https://github.com/CastXML/CastXMLSuperbuild/releases/download/v0.6.11/castxml-macosx.tar.gz | tar zxf - -C ~/
216+
- name: Setup castxml for Mac ARM
217+
if: matrix.os == 'macos-15' && matrix.arch == 'arm64'
100218
run: |
101-
wget -q -O - https://data.kitware.com/api/v1/file/hashsum/sha512/5d937e938f7b882a3a3e7941e68f8312d0898aaf2082e00003dd362b1ba70b98b0a08706a1be28e71652a6a0f1e66f89768b5eaa20e5a100592d5b3deefec3f0/download | tar zxf - -C ~/
219+
wget -q -O - https://github.com/CastXML/CastXMLSuperbuild/releases/download/v0.6.11/castxml-macos-arm.tar.gz | tar zxf - -C ~/
102220
- name: Run tests
103221
run: |
104222
export PATH=~/castxml/bin:$PATH
105-
pytest tests
223+
pytest tests

0 commit comments

Comments
 (0)