From 948f7a210f64f59ed93430d1987fce4e2b4a1d89 Mon Sep 17 00:00:00 2001 From: Laurent Farvacque Date: Thu, 27 Jan 2022 13:54:45 +0100 Subject: [PATCH] Skip test_patpass on linux and MacOS --- .github/workflows/python-tests.yml | 1 + pyat/test/test_patpass.py | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/python-tests.yml b/.github/workflows/python-tests.yml index c6a25b63d..12c789b07 100644 --- a/.github/workflows/python-tests.yml +++ b/.github/workflows/python-tests.yml @@ -16,6 +16,7 @@ jobs: build_and_run_tests: runs-on: ${{ matrix.os }} + timeout-minutes: 15 strategy: matrix: diff --git a/pyat/test/test_patpass.py b/pyat/test/test_patpass.py index 7c14dd352..26d80bd60 100644 --- a/pyat/test/test_patpass.py +++ b/pyat/test/test_patpass.py @@ -1,9 +1,11 @@ from at import elements, patpass import numpy import pytest +import sys - +@pytest.mark.skipif(not sys.platform.startswith("win"), + reason="May hang on linux and MacOS") def test_patpass_multiple_particles_and_turns(): nturns = 10 nparticles = 10