Skip to content

Commit 05d3543

Browse files
committed
Remove exclude and add dynamic skipping for unsupported configurations
1 parent acda37d commit 05d3543

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/tests.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ jobs:
1313
matrix:
1414
os: [ubuntu-latest, macos-latest, windows-latest]
1515
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
16+
fail-fast: false
1617

1718
steps:
1819
- name: Checkout code
@@ -23,12 +24,30 @@ jobs:
2324
with:
2425
python-version: ${{ matrix.python-version }}
2526

27+
- name: Debug environment
28+
run: |
29+
echo "OS: ${{ matrix.os }}"
30+
echo "Python Version: ${{ matrix.python-version }}"
31+
python --version
32+
pip --version
33+
34+
- name: Skip unsupported configurations
35+
if: matrix.os == 'windows-latest' && matrix.python-version == '3.9'
36+
run: echo "Skipping unsupported configuration: ${{ matrix.os }} with Python ${{ matrix.python-version }}"
37+
2638
- name: Install dependencies
39+
if: matrix.os != 'windows-latest' || matrix.python-version != '3.9'
2740
run: |
2841
python -m pip install --upgrade pip
2942
pip install -e '.[test]'
3043
44+
- name: Install build tools (Windows)
45+
if: runner.os == 'Windows' && matrix.python-version != '3.9'
46+
run: |
47+
choco install visualstudio2019buildtools --include-optional
48+
3149
- name: Run tests with pytest
50+
if: matrix.os != 'windows-latest' || matrix.python-version != '3.9'
3251
run: |
3352
pytest tests/ -v
3453
@@ -43,6 +62,13 @@ jobs:
4362
with:
4463
python-version: '3.12'
4564

65+
- name: Debug environment
66+
run: |
67+
echo "Python Version:"
68+
python --version
69+
echo "Pip Version:"
70+
pip --version
71+
4672
- name: Install linting dependencies
4773
run: |
4874
python -m pip install --upgrade pip

0 commit comments

Comments
 (0)