Skip to content

Commit fcf5a60

Browse files
committed
Set allow-failure
1 parent 45c9d4c commit fcf5a60

2 files changed

Lines changed: 12 additions & 30 deletions

File tree

.github/workflows/test-bench.yml

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ jobs:
1414
strategy:
1515
matrix:
1616
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
17+
allow-failure:
18+
- ${{ contains(fromJson('["3.6","3.7","3.8"]'), matrix.python-version) }}
19+
1720
steps:
1821
- name: Check out repository code
1922
uses: actions/checkout@v4
@@ -30,26 +33,14 @@ jobs:
3033
uses: actions/setup-python@v5
3134
with:
3235
python-version: ${{ matrix.python-version }}
33-
continue-on-error: ${{
34-
matrix.python-version == '3.6' ||
35-
matrix.python-version == '3.7' ||
36-
matrix.python-version == '3.8'
37-
}}
36+
continue-on-error: ${{ matrix.allow-failure }}
3837

3938
- name: Install dependencies
4039
run: |
4140
python -m pip install -e .[dev]
42-
continue-on-error: ${{
43-
matrix.python-version == '3.6' ||
44-
matrix.python-version == '3.7' ||
45-
matrix.python-version == '3.8'
46-
}}
41+
continue-on-error: ${{ matrix.allow-failure }}
4742

4843
- name: Run benchmarks
4944
run: |
5045
python -m unittest discover -s tests -p 'test_bench_*.py'
51-
continue-on-error: ${{
52-
matrix.python-version == '3.6' ||
53-
matrix.python-version == '3.7' ||
54-
matrix.python-version == '3.8'
55-
}}
46+
continue-on-error: ${{ matrix.allow-failure }}

.github/workflows/test-unit.yml

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ jobs:
1414
strategy:
1515
matrix:
1616
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
17+
allow-failure:
18+
- ${{ contains(fromJson('["3.6","3.7","3.8"]'), matrix.python-version) }}
19+
1720
steps:
1821
- name: Check out repository code
1922
uses: actions/checkout@v4
@@ -30,30 +33,18 @@ jobs:
3033
uses: actions/setup-python@v5
3134
with:
3235
python-version: ${{ matrix.python-version }}
33-
continue-on-error: ${{
34-
matrix.python-version == '3.6' ||
35-
matrix.python-version == '3.7' ||
36-
matrix.python-version == '3.8'
37-
}}
36+
continue-on-error: ${{ matrix.allow-failure }}
3837

3938
- name: Install dependencies
4039
run: |
4140
python -m pip install -e .[dev]
42-
continue-on-error: ${{
43-
matrix.python-version == '3.6' ||
44-
matrix.python-version == '3.7' ||
45-
matrix.python-version == '3.8'
46-
}}
41+
continue-on-error: ${{ matrix.allow-failure }}
4742

4843
- name: Run tests and code coverage
4944
run: |
5045
coverage run --source=src -m unittest discover -s tests -p 'test_unit_*.py'
5146
coverage report -m
52-
continue-on-error: ${{
53-
matrix.python-version == '3.6' ||
54-
matrix.python-version == '3.7' ||
55-
matrix.python-version == '3.8'
56-
}}
47+
continue-on-error: ${{ matrix.allow-failure }}
5748

5849
- name: Upload coverage reports to Codecov
5950
uses: codecov/codecov-action@v4

0 commit comments

Comments
 (0)