Skip to content

Commit b8ffaeb

Browse files
committed
Enforce compiled inpoly kernel in CI tox runs
Add a tox gate to fail when the compiled point_in_polygon kernel is unavailable if OCEANMESH_REQUIRE_INPOLY_ACCEL=1 is set (prints interpreter + compiled status first). Set OCEANMESH_REQUIRE_INPOLY_ACCEL=1 and OCEANMESH_INPOLY_ACCEL_DEBUG=1 for the Ubuntu tox_tests matrix job so CI won’t silently fall back to the slow Python implementation.
1 parent a6f7203 commit b8ffaeb

File tree

3 files changed

+208
-159
lines changed

3 files changed

+208
-159
lines changed

.github/workflows/ci.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,46 @@ on:
1010
- "test-v*"
1111

1212
jobs:
13+
tox_tests:
14+
name: Tox tests (ubuntu, py${{ matrix.py }})
15+
runs-on: ubuntu-latest
16+
strategy:
17+
fail-fast: false
18+
matrix:
19+
include:
20+
- py: "310"
21+
python-version: "3.10"
22+
toxenv: "py310"
23+
- py: "311"
24+
python-version: "3.11"
25+
toxenv: "py311"
26+
- py: "312"
27+
python-version: "3.12"
28+
toxenv: "py312"
29+
- py: "313"
30+
python-version: "3.13"
31+
toxenv: "py313"
32+
33+
steps:
34+
- uses: actions/checkout@v4
35+
env:
36+
OCEANMESH_REQUIRE_INPOLY_ACCEL: "1"
37+
OCEANMESH_INPOLY_ACCEL_DEBUG: "1"
38+
39+
- name: Set up Python
40+
uses: actions/setup-python@v5
41+
with:
42+
python-version: ${{ matrix.python-version }}
43+
44+
- name: Install tox
45+
run: |
46+
python -m pip install --upgrade pip
47+
python -m pip install tox
48+
49+
- name: Run tests
50+
run: |
51+
tox -e ${{ matrix.toxenv }} -- -q
52+
1353
build_wheels:
1454
name: Build wheels (${{ matrix.os }})
1555
runs-on: ${{ matrix.os }}

0 commit comments

Comments
 (0)