Skip to content

Commit e29fee3

Browse files
committed
skip slow example crash tests on aarch64 (qemu)
1 parent f6c244b commit e29fee3

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,11 +399,12 @@ jobs:
399399

400400
- name: Test wheel (Linux)
401401
if: matrix.config.os-name == 'linux'
402-
run: docker run --rm -e PYTHON_ARCH -e PYTHON_VERSION -e NUMPY_VERSION -v `pwd`:/io ${{ matrix.config.docker-image }} /io/.github/scripts/test-linux.sh
402+
run: docker run --rm -e PYTHON_ARCH -e PYTHON_VERSION -e NUMPY_VERSION -e RAWPY_SKIP_EXAMPLES -v `pwd`:/io ${{ matrix.config.docker-image }} /io/.github/scripts/test-linux.sh
403403
env:
404404
PYTHON_ARCH: ${{ matrix.config.python-arch }}
405405
PYTHON_VERSION: ${{ matrix.config.python-version }}
406406
NUMPY_VERSION: ${{ matrix.config.numpy-version }}
407+
RAWPY_SKIP_EXAMPLES: ${{ matrix.config.python-arch == 'aarch64' && '1' || '' }}
407408

408409
- name: Setup Python (Windows)
409410
if: matrix.config.os-name == 'windows'

test/test_examples.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,13 @@
1919
reason="test image not available",
2020
)
2121

22+
skip_examples = pytest.mark.skipif(
23+
os.environ.get("RAWPY_SKIP_EXAMPLES", "") == "1",
24+
reason="RAWPY_SKIP_EXAMPLES is set (e.g., slow QEMU emulation)",
25+
)
26+
27+
pytestmark = skip_examples
28+
2229

2330
def run_example(script_name: str) -> subprocess.CompletedProcess:
2431
"""Run an example script and return the result."""

0 commit comments

Comments
 (0)