Skip to content

Commit

Permalink
build: Adding selfhosted file
Browse files Browse the repository at this point in the history
  • Loading branch information
andrea-pasquale committed Feb 5, 2025
1 parent a622b02 commit 244a46b
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions selfhosted
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

0 comments on commit 244a46b

Please sign in to comment.