Skip to content

Commit

Permalink
omit sparc tests
Browse files Browse the repository at this point in the history
  • Loading branch information
alchem0x2A committed Sep 28, 2023
1 parent a7fb863 commit c568b42
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/installation_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 1 addition & 0 deletions tests/test_read_all_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit c568b42

Please sign in to comment.