Skip to content

Commit b3ae5ce

Browse files
committed
👷 integration testing matrix for numpy
1 parent 615cad4 commit b3ae5ce

File tree

1 file changed

+18
-21
lines changed

1 file changed

+18
-21
lines changed

‎.github/workflows/ci.yml

Lines changed: 18 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ env:
1818
FORCE_COLOR: 3
1919

2020
jobs:
21-
format:
21+
lint:
2222
name: lint
2323
runs-on: ubuntu-latest
2424
steps:
@@ -35,10 +35,11 @@ jobs:
3535
- name: mypy
3636
run: uv run mypy --tb --no-incremental --cache-dir=/dev/null src
3737

38-
checks:
39-
name: test runtime
38+
# TODO: (based)pyright
39+
40+
test_runtime:
41+
name: runtime tests
4042
runs-on: ${{ matrix.runs-on }}
41-
needs: [format]
4243
strategy:
4344
fail-fast: false
4445
matrix:
@@ -63,30 +64,26 @@ jobs:
6364
with:
6465
token: ${{ secrets.CODECOV_TOKEN }}
6566

66-
check_oldest:
67-
name: runtime tests (oldest deps)
68-
runs-on: ${{ matrix.runs-on }}
69-
needs: [format]
67+
test_integration_numpy:
68+
name: integration tests (numpy)
69+
runs-on: ubuntu-latest
7070
strategy:
7171
fail-fast: false
7272
matrix:
73-
python-version: ["3.11"]
74-
runs-on: [ubuntu-latest]
73+
numpy-version: ["1.25.0", "1.25.2", "1.26.4", "2.0.2", "2.1.3", "2.2.6", "2.3.1"]
7574

7675
steps:
7776
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
7877

79-
- name: Install uv
80-
uses: astral-sh/setup-uv@f0ec1fc3b38f5e7cd731bb6ce540c5af426746bb
78+
- uses: astral-sh/setup-uv@f0ec1fc3b38f5e7cd731bb6ce540c5af426746bb
8179
with:
82-
python-version: ${{ matrix.python-version }}
80+
python-version: "3.11"
8381

84-
- name: Test package
85-
run: >-
86-
uv run --group=test_runtime --resolution=lowest-direct
87-
pytest --cov --cov-report=xml --cov-report=term --durations=20
82+
- name: mypy
83+
run: >
84+
uv run --no-editable --group=test_numpy --with="numpy==${{ matrix.numpy-version }}"
85+
mypy --tb --no-incremental --cache-dir=/dev/null tests/integration/test_numpy.py
8886
89-
- name: Upload coverage report
90-
uses: codecov/codecov-action@18283e04ce6e62d37312384ff67231eb8fd56d24
91-
with:
92-
token: ${{ secrets.CODECOV_TOKEN }}
87+
# TODO: (based)pyright
88+
89+
# TODO: integration tests for other libs

0 commit comments

Comments
 (0)