Skip to content

Commit

Permalink
GHA: Imvoke pytest directly
Browse files Browse the repository at this point in the history
  • Loading branch information
picsel2 committed Mar 1, 2024
1 parent a6363af commit 1b74f5c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ jobs:
mkdir dummydir
# Change to dummy directory to prevent adding the source root to sys.path
cd dummydir
PYTHONPATH=/usr/local/lib/python3.8/site-packages ../run-tests ../tests
PYTHONPATH=/usr/local/lib/python3.8/site-packages pytest ../tests
3 changes: 2 additions & 1 deletion run-tests
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,5 @@ if __name__ == "__main__":
if len(sys.argv) == 1:
sys.argv.append('tests')

sys.exit(pytest.main(['--import-mode=append'] + sys.argv[1:]))
sys.exit(pytest.main())

0 comments on commit 1b74f5c

Please sign in to comment.