|
7 | 7 | branches: [main] |
8 | 8 |
|
9 | 9 | jobs: |
10 | | - test-ubuntu-py38: |
11 | | - runs-on: ${{matrix.os}} |
12 | | - timeout-minutes: 20 |
13 | | - strategy: |
14 | | - fail-fast: false |
15 | | - matrix: |
16 | | - os: [ubuntu-latest] |
17 | | - python-version: |
18 | | - - "3.8" |
19 | | - |
20 | | - steps: |
21 | | - - uses: actions/checkout@v3 |
22 | | - |
23 | | - - name: Set up Python ${{ matrix.python-version }} |
24 | | - uses: actions/setup-python@v4 |
25 | | - with: |
26 | | - python-version: ${{ matrix.python-version }} |
27 | | - |
28 | | - - name: Upgrade pip version |
29 | | - run: | |
30 | | - python -m pip install --upgrade pip |
31 | | -
|
32 | | - - name: Install requirements |
33 | | - run: | |
34 | | - python -m pip install -r requirements.txt |
35 | | - python -m pip install -r docs/requirements.txt |
36 | | -
|
37 | | - - name: Install lcov |
38 | | - run: | |
39 | | - sudo apt-get update |
40 | | - sudo apt-get install -y lcov |
41 | | -
|
42 | | - - name: Build package |
43 | | - env: |
44 | | - CXXFLAGS: "-std=c++17 --coverage" |
45 | | - CFLAGS: "--coverage" |
46 | | - run: | |
47 | | - spin build -v |
48 | | - # coverage tests |
49 | | - - name: Run tests |
50 | | - run: | |
51 | | - spin test -v |
52 | | -
|
53 | | - - name: Capture Coverage Data with lcov |
54 | | - run: | |
55 | | - lcov --capture --directory . --output-file coverage.info --no-external |
56 | | -
|
57 | | - - name: Generate HTML Coverage Report with genhtml |
58 | | - run: | |
59 | | - genhtml coverage.info --output-directory coverage_report |
60 | | -
|
61 | | - - name: Upload Coverage |
62 | | - uses: codecov/codecov-action@v3 |
63 | | - with: |
64 | | - token: ${{ secrets.CODECOV_TOKEN }} |
65 | | - directory: ./coverage/reports/ |
66 | | - env_vars: OS,PYTHON |
67 | | - fail_ci_if_error: false |
68 | | - files: ./coverage.xml |
69 | | - flags: unittests |
70 | | - name: codecov-umbrella |
71 | | - path_to_write_report: ./coverage/codecov_report.txt |
72 | | - verbose: true |
73 | | - |
74 | | - - name: Build Documentation |
75 | | - run: | |
76 | | - sphinx-build -b html docs/source/ docs/build/html |
| 10 | + # test-ubuntu-py38: |
| 11 | + # runs-on: ${{matrix.os}} |
| 12 | + # timeout-minutes: 20 |
| 13 | + # strategy: |
| 14 | + # fail-fast: false |
| 15 | + # matrix: |
| 16 | + # os: [ubuntu-latest] |
| 17 | + # python-version: |
| 18 | + # - "3.8" |
| 19 | + # |
| 20 | + # steps: |
| 21 | + # - uses: actions/checkout@v3 |
| 22 | + # |
| 23 | + # - name: Set up Python ${{ matrix.python-version }} |
| 24 | + # uses: actions/setup-python@v4 |
| 25 | + # with: |
| 26 | + # python-version: ${{ matrix.python-version }} |
| 27 | + # |
| 28 | + # - name: Upgrade pip version |
| 29 | + # run: | |
| 30 | + # python -m pip install --upgrade pip |
| 31 | + # |
| 32 | + # - name: Install requirements |
| 33 | + # run: | |
| 34 | + # python -m pip install -r requirements.txt |
| 35 | + # python -m pip install -r docs/requirements.txt |
| 36 | + # |
| 37 | + # - name: Install lcov |
| 38 | + # run: | |
| 39 | + # sudo apt-get update |
| 40 | + # sudo apt-get install -y lcov |
| 41 | + # |
| 42 | + # - name: Build package |
| 43 | + # env: |
| 44 | + # CXXFLAGS: "-std=c++17 --coverage" |
| 45 | + # CFLAGS: "--coverage" |
| 46 | + # run: | |
| 47 | + # spin build -v |
| 48 | + # # coverage tests |
| 49 | + # - name: Run tests |
| 50 | + # run: | |
| 51 | + # spin test -v |
| 52 | + # |
| 53 | + # - name: Capture Coverage Data with lcov |
| 54 | + # run: | |
| 55 | + # lcov --capture --directory . --output-file coverage.info --no-external |
| 56 | + # |
| 57 | + # - name: Generate HTML Coverage Report with genhtml |
| 58 | + # run: | |
| 59 | + # genhtml coverage.info --output-directory coverage_report |
| 60 | + # |
| 61 | + # - name: Upload Coverage |
| 62 | + # uses: codecov/codecov-action@v3 |
| 63 | + # with: |
| 64 | + # token: ${{ secrets.CODECOV_TOKEN }} |
| 65 | + # directory: ./coverage/reports/ |
| 66 | + # env_vars: OS,PYTHON |
| 67 | + # fail_ci_if_error: false |
| 68 | + # files: ./coverage.xml |
| 69 | + # flags: unittests |
| 70 | + # name: codecov-umbrella |
| 71 | + # path_to_write_report: ./coverage/codecov_report.txt |
| 72 | + # verbose: true |
| 73 | + # |
| 74 | + # - name: Build Documentation |
| 75 | + # run: | |
| 76 | + # sphinx-build -b html docs/source/ docs/build/html |
77 | 77 |
|
78 | 78 | test-ubuntu-py39-py310: |
79 | 79 | runs-on: ${{matrix.os}} |
@@ -125,7 +125,7 @@ jobs: |
125 | 125 | matrix: |
126 | 126 | os: [macos-latest] |
127 | 127 | python-version: |
128 | | - - "3.8" |
| 128 | + # - "3.8" |
129 | 129 | - "3.9" |
130 | 130 | - "3.10" |
131 | 131 |
|
@@ -160,52 +160,53 @@ jobs: |
160 | 160 | run: | |
161 | 161 | sphinx-build -b html docs/source/ docs/build/html |
162 | 162 |
|
163 | | - # test-windows: |
164 | | - # runs-on: ${{matrix.os}} |
165 | | - # timeout-minutes: 20 |
166 | | - # strategy: |
167 | | - # fail-fast: false |
168 | | - # matrix: |
169 | | - # os: [windows-latest] |
170 | | - # python-version: |
171 | | - # - "3.8" |
172 | | - |
173 | | - # steps: |
174 | | - # - uses: actions/checkout@v3 |
175 | | - |
176 | | - # - name: Set up Python ${{ matrix.python-version }} |
177 | | - # uses: actions/setup-python@v4 |
178 | | - # with: |
179 | | - # python-version: ${{ matrix.python-version }} |
180 | | - |
181 | | - # - name: Setup conda |
182 | | - # uses: s-weigand/setup-conda@v1 |
183 | | - # with: |
184 | | - # update-conda: true |
185 | | - # python-version: ${{ matrix.python-version }} |
186 | | - # conda-channels: anaconda, conda-forge |
187 | | - # # - run: conda --version # This fails due to unknown reasons |
188 | | - # - run: which python |
189 | | - |
190 | | - # - name: Upgrade pip version |
191 | | - # run: | |
192 | | - # python -m pip install --upgrade pip |
193 | | - |
194 | | - # - name: Install requirements |
195 | | - # run: | |
196 | | - # python -m pip install -r requirements.txt |
197 | | - # python -m pip install -r docs/requirements.txt |
198 | | - |
199 | | - - name: Build package |
200 | | - env: |
201 | | - CL: "/std:c++17" |
202 | | - run: | |
203 | | - spin build -v |
204 | | -
|
205 | | - - name: Run tests |
206 | | - run: | |
207 | | - spin test -v |
208 | | -
|
| 163 | + # test-windows: |
| 164 | + # runs-on: ${{matrix.os}} |
| 165 | + # timeout-minutes: 20 |
| 166 | + # strategy: |
| 167 | + # fail-fast: false |
| 168 | + # matrix: |
| 169 | + # os: [windows-latest] |
| 170 | + # python-version: |
| 171 | + # # - "3.8" |
| 172 | + # - "3.9" |
| 173 | + # |
| 174 | + # steps: |
| 175 | + # - uses: actions/checkout@v3 |
| 176 | + # |
| 177 | + # - name: Set up Python ${{ matrix.python-version }} |
| 178 | + # uses: actions/setup-python@v4 |
| 179 | + # with: |
| 180 | + # python-version: ${{ matrix.python-version }} |
| 181 | + # |
| 182 | + # - name: Setup conda |
| 183 | + # uses: s-weigand/setup-conda@v1 |
| 184 | + # with: |
| 185 | + # update-conda: true |
| 186 | + # python-version: ${{ matrix.python-version }} |
| 187 | + # conda-channels: anaconda, conda-forge |
| 188 | + # # - run: conda --version # This fails due to unknown reasons |
| 189 | + # - run: which python |
| 190 | + # |
| 191 | + # - name: Upgrade pip version |
| 192 | + # run: | |
| 193 | + # python -m pip install --upgrade pip |
| 194 | + # |
| 195 | + # - name: Install requirements |
| 196 | + # run: | |
| 197 | + # python -m pip install -r requirements.txt |
| 198 | + # python -m pip install -r docs/requirements.txt |
| 199 | + # |
| 200 | + # - name: Build package |
| 201 | + # env: |
| 202 | + # CL: "/std:c++17" |
| 203 | + # run: | |
| 204 | + # spin build -v |
| 205 | + # |
| 206 | + # - name: Run tests |
| 207 | + # run: | |
| 208 | + # spin test -v |
| 209 | + # |
209 | 210 | # - name: Build Documentation |
210 | 211 | # run: | |
211 | 212 | # sphinx-build -b html docs/source/ docs/build/html |
0 commit comments