Skip to content

Commit 02d7c85

Browse files
authored
[MNT] add tests without and with all extra dependencies (#612)
Adds test jobs to run tests without any of the `extra` dependencies. As a result, there are two test matrices across operating systems and python versions: one that runs tests without any `extra` dependencies`, and one that runs them with all of them. Depends on the following soft dependency isolation PR which should be merged first: * #613
1 parent ee737b1 commit 02d7c85

1 file changed

Lines changed: 38 additions & 1 deletion

File tree

.github/workflows/testing.yml

Lines changed: 38 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,44 @@ concurrency:
1717
cancel-in-progress: true
1818

1919
jobs:
20-
pytest:
20+
test-no-extras:
21+
runs-on: ${{ matrix.os }}
22+
strategy:
23+
fail-fast: false
24+
matrix:
25+
os: [ubuntu-latest, windows-latest] #macos-latest fails downloads, see #593
26+
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
27+
28+
steps:
29+
- uses: actions/checkout@v6
30+
31+
- run: git remote set-branches origin 'main'
32+
33+
- run: git fetch --depth 1
34+
35+
- name: Install uv
36+
uses: astral-sh/setup-uv@v7
37+
with:
38+
enable-cache: true
39+
40+
- name: Set up Python ${{ matrix.python-version }}
41+
uses: actions/setup-python@v6
42+
with:
43+
python-version: ${{ matrix.python-version }}
44+
45+
- name: Install main package & dependencies
46+
run: uv pip install -e .[dev]
47+
env:
48+
UV_SYSTEM_PYTHON: 1
49+
50+
- name: Show installed packages
51+
run: uv pip list
52+
53+
- name: Run test-suite
54+
run: python -m pytest -v
55+
56+
57+
test-all-extras:
2158
runs-on: ${{ matrix.os }}
2259
strategy:
2360
fail-fast: false

0 commit comments

Comments
 (0)