Skip to content

Commit 0ca3076

Browse files
Updating testing workflow.
1 parent 4d29824 commit 0ca3076

File tree

1 file changed

+22
-7
lines changed

1 file changed

+22
-7
lines changed

.github/workflows/testing.yml

Lines changed: 22 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515

1616
- uses: actions/setup-python@v4
1717
with:
18-
python-version: '3.10'
18+
python-version: '3.13'
1919
cache: pip
2020
cache-dependency-path: pyproject.toml
2121

@@ -28,17 +28,27 @@ jobs:
2828
run: pre-commit run --all-files --show-diff-on-failure
2929

3030
test:
31-
runs-on: ubuntu-latest
3231
strategy:
3332
matrix:
34-
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13', '3.14']
35-
33+
config:
34+
- { os: macos-latest, python: "3.9", resolution: lowest-direct }
35+
- { os: ubuntu-latest, python: "3.9", resolution: lowest-direct }
36+
- { os: ubuntu-latest, python: "3.9", resolution: highest }
37+
- { os: ubuntu-latest, python: "3.10", resolution: highest }
38+
- { os: ubuntu-latest, python: "3.11", resolution: highest }
39+
- { os: ubuntu-latest, python: "3.12", resolution: highest }
40+
- { os: ubuntu-latest, python: "3.13", resolution: highest }
41+
- { os: ubuntu-latest, python: "3.14", resolution: lowest-direct }
42+
- { os: macos-latest, python: "3.14", resolution: highest }
43+
- { os: ubuntu-latest, python: "3.14", resolution: highest }
44+
45+
runs-on: ${{ matrix.config.os }}
3646
steps:
3747
- uses: actions/checkout@v3
3848

3949
- uses: actions/setup-python@v4
4050
with:
41-
python-version: ${{ matrix.python-version }}
51+
python-version: ${{ matrix.config.python }}
4252
cache: pip
4353
cache-dependency-path: pyproject.toml
4454

@@ -48,10 +58,15 @@ jobs:
4858
pip install .[strict,tests,docs]
4959
5060
- name: Test
61+
if: matrix.config.os == 'ubuntu-latest'
5162
run: pytest --cov=qtoolkit --cov-report=xml
5263

64+
- name: Test macos (no integration)
65+
if: matrix.config.os == 'macos-latest'
66+
run: pytest --ignore=tests/integration --cov=qtoolkit --cov-report=xml
67+
5368
- name: Upload coverage to Codecov
54-
if: matrix.python-version == '3.11'
69+
if: matrix.config.os == 'ubuntu-latest' && matrix.config.python == '3.13' && matrix.config.resolution == 'highest'
5570
uses: codecov/codecov-action@v3
5671
with:
5772
token: ${{ secrets.CODECOV_TOKEN }}
@@ -65,7 +80,7 @@ jobs:
6580

6681
- uses: actions/setup-python@v4
6782
with:
68-
python-version: '3.11'
83+
python-version: '3.13'
6984
cache: pip
7085
cache-dependency-path: pyproject.toml
7186

0 commit comments

Comments
 (0)