mirror of
https://github.com/NGSolve/netgen.git
synced 2024-11-11 16:49:16 +05:00
[gitlab-ci] Run slow tests only in ubuntu-mpi build
This commit is contained in:
parent
2faf16e8cf
commit
7582548b8c
@ -13,7 +13,15 @@ def pytest_configure(config):
|
||||
|
||||
|
||||
def pytest_collection_modifyitems(config, items):
|
||||
if not (('RUN_SLOW_TESTS' in os.environ and os.environ['RUN_SLOW_TESTS']) or config.getoption("--runslow")):
|
||||
import platform
|
||||
|
||||
run_slow_tests = config.getoption("--runslow")
|
||||
|
||||
# gitlab-ci: run slow tests only on Linux
|
||||
if platform.system()=='Linux' and 'RUN_SLOW_TESTS' in os.environ and os.environ['RUN_SLOW_TESTS']:
|
||||
run_slow_tests = True
|
||||
|
||||
if not run_slow_tests:
|
||||
skip_slow = pytest.mark.skip(reason="need --runslow option to run")
|
||||
for item in items:
|
||||
if "slow" in item.keywords:
|
||||
|
Loading…
Reference in New Issue
Block a user