Skip to content

Commit a7fe54d

Browse files
committed
👷 integration testing matrix for numpy
1 parent a15686c commit a7fe54d

File tree

1 file changed

+19
-21
lines changed

1 file changed

+19
-21
lines changed

‎.github/workflows/ci.yml

Lines changed: 19 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,27 @@ 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:
74+
["1.25.0", "1.25.2", "1.26.4", "2.0.2", "2.1.3", "2.2.6", "2.3.1"]
7575

7676
steps:
7777
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
7878

79-
- name: Install uv
80-
uses: astral-sh/setup-uv@bd01e18f51369d5a26f1651c3cb451d3417e3bba
79+
- uses: astral-sh/setup-uv@bd01e18f51369d5a26f1651c3cb451d3417e3bba
8180
with:
82-
python-version: ${{ matrix.python-version }}
81+
python-version: "3.11"
8382

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
83+
- name: mypy
84+
run: >
85+
uv run --no-editable --group=test_numpy --with="numpy==${{ matrix.numpy-version }}"
86+
mypy --tb --no-incremental --cache-dir=/dev/null tests/integration/test_numpy.py
8887
89-
- name: Upload coverage report
90-
uses: codecov/codecov-action@18283e04ce6e62d37312384ff67231eb8fd56d24
91-
with:
92-
token: ${{ secrets.CODECOV_TOKEN }}
88+
# TODO: (based)pyright
89+
90+
# TODO: integration tests for other libs

0 commit comments

Comments
 (0)