-
Notifications
You must be signed in to change notification settings - Fork 45
105 lines (95 loc) · 3.15 KB
/
tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
on:
push:
branches:
- main
- develop
pull_request:
jobs:
tests:
name: ${{ matrix.os }}-${{ matrix.compiler }}-${{ matrix.version }}-python-${{ matrix.python-version }}-${{ matrix.castxml-epic }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-20.04
compiler: gcc
version: "9"
python-version: "3.7"
castxml: "castxml"
castxml-epic: 0
cppstd: "-std=c++98"
- os: ubuntu-20.04
compiler: gcc
version: "9"
python-version: "3.8"
castxml: "castxml"
castxml-epic: 0
cppstd: "-std=c++98"
- os: ubuntu-20.04
compiler: gcc
version: "9"
python-version: "3.9"
castxml: "castxml"
castxml-epic: 0
cppstd: "-std=c++98"
- os: ubuntu-20.04
compiler: gcc
version: "9"
python-version: "3.10"
castxml: "castxml"
castxml-epic: 0
cppstd: "-std=c++98"
- os: ubuntu-20.04
compiler: gcc
version: "9"
python-version: "3.11"
castxml: "castxml"
castxml-epic: 0
cppstd: "-std=c++98"
- os: ubuntu-20.04
compiler: gcc
version: "9"
python-version: "3.8"
castxml: "castxml"
castxml-epic: 1
cppstd: "-std=c++98"
- os: ubuntu-20.04
compiler: gcc
version: "9"
python-version: "3.8"
castxml: "castxml"
castxml-epic: 1
cppstd: "-std=c++11"
- os: macos-12
compiler: xcode
version: "default"
python-version: "3.8"
castxml: "castxml"
castxml-epic: 0
cppstd: "-std=c++98"
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Display Python version
run: python -c "import sys; print(sys.version)"
- name: Install Python lib and test libs
run: |
pip install '.[test]'
- name: Run pycodestyle
run: pycodestyle . --exclude=docs
- name: Setup castxml for Linux
if: matrix.os == 'ubuntu-20.04' && matrix.castxml == 'castxml'
run: |
wget -q -O - https://data.kitware.com/api/v1/file/hashsum/sha512/bdbb67a10c5f8d1b738cd19cb074f409d4803e8077cb8c1072ef4eaf738fa871a73643f9c8282d58cae28d188df842c82ad6620b6d590b0396a0172a27438dce/download | tar zxf - -C ~/
- name: Setup castxml for Mac
if: matrix.os == 'macos-12'
run: |
wget -q -O - https://data.kitware.com/api/v1/file/hashsum/sha512/5d937e938f7b882a3a3e7941e68f8312d0898aaf2082e00003dd362b1ba70b98b0a08706a1be28e71652a6a0f1e66f89768b5eaa20e5a100592d5b3deefec3f0/download | tar zxf - -C ~/
- name: Run tests
run: |
export PATH=~/castxml/bin:$PATH
pytest tests