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