add skips on osx/win, only measure coverage on linux
@@ -21,6 +21,15 @@ requirements:
run:
- python >=3.6
+# only track coverage on linux
+{% set test_args = "--cov simpy --cov-report term-missing:skip-covered --cov-fail-under 92" %} # [linux]
+
+# ci too slow
+{% set test_args = "-k 'not(test_rt)'" %} # [osx]
+
+# assumes unix paths
+{% set test_args = "-k 'not(exception_chaining)'" %} # [win]
+
test:
source_files:
- tests
@@ -29,7 +38,7 @@ test:
- simpy.resources
commands:
- pip check
- - cd tests && pytest -vv --cov simpy --cov-report term-missing:skip-covered --cov-fail-under 92
+ - cd tests && pytest -vv {{ test_args }}
requires:
- pip
- pytest
