-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a622b02
commit 244a46b
Showing
1 changed file
with
19 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/bash | ||
|
||
# Script for running the selfhosted tests on QPUs directly from GitHub | ||
# Tests need to be copied to /tmp/ because coverage does not work with NFS | ||
|
||
cp -r src/qibojit/tests /tmp/ | ||
cp pyproject.toml /tmp/ | ||
cd /tmp/tests | ||
source /nfs/users/github/actions-runner/_work/qibojit/qibojit/testenv/bin/activate | ||
pytest | ||
pytest_status=$? | ||
if [[ $pytest_status -ne 0 ]] | ||
then | ||
exit $pytest_status | ||
fi | ||
cd - | ||
mv /tmp/tests/coverage.xml . | ||
mv /tmp/tests/htmlcov . | ||
rm -r /tmp/tests |