From c568b4261823122d100860680c57083f8eea831c Mon Sep 17 00:00:00 2001 From: "T.Tian" Date: Thu, 28 Sep 2023 17:21:57 +0800 Subject: [PATCH] omit sparc tests --- .github/workflows/installation_test.yml | 2 +- tests/test_read_all_examples.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/installation_test.yml b/.github/workflows/installation_test.yml index 840b426d..bea03e2f 100644 --- a/.github/workflows/installation_test.yml +++ b/.github/workflows/installation_test.yml @@ -41,10 +41,10 @@ jobs: run: | wget https://github.com/SPARC-X/SPARC/archive/refs/heads/master.zip unzip master.zip - export SPARC_TESTS_DIR="./SPARC-master/tests" - name: Test with pytest run: | # python -m pytest -svv tests/ --cov=sparc --cov-report=json --cov-report=html + export SPARC_TESTS_DIR="./SPARC-master/tests" coverage run -a -m pytest -svv tests/ coverage json --omit="tests/*.py" coverage html --omit="tests/*.py" diff --git a/tests/test_read_all_examples.py b/tests/test_read_all_examples.py index cfbf223f..8d1d82b5 100644 --- a/tests/test_read_all_examples.py +++ b/tests/test_read_all_examples.py @@ -19,6 +19,7 @@ def test_read_all_tests(): skipped_names = [] tests_dir = os.environ.get("SPARC_TESTS_DIR", "") + print(f"Current test dir is {tests_dir}") if len(tests_dir) == 0: pytest.skip(allow_module_level=True)