This repository has been archived by the owner on Mar 21, 2021. It is now read-only.
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
fefe660
commit 8dddbb5
Showing
2 changed files
with
28 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,22 @@ | ||
name: "Test" | ||
on: push | ||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
# container: | ||
# image: docker.pkg.github.com/arrowresearch/qc0/env:latest | ||
# options: --cpus 1 | ||
name: Run Tests | ||
steps: | ||
- name: Docker login | ||
run: docker login docker.pkg.github.com -u $GITHUB_ACTOR -p $GITHUB_TOKEN | ||
env: | ||
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | ||
- name: Check out the repo | ||
uses: actions/checkout@v2 | ||
- name: Run tests | ||
run: | | ||
docker run \ | ||
-v "${PWD}:${PWD}" -w "${PWD}" \ | ||
docker.pkg.github.com/arrowresearch/qc0/env:latest \ | ||
make ci-test |
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 |
---|---|---|
|
@@ -18,3 +18,9 @@ test: | |
|
||
fmt: | ||
@black qc0/ tests/ | ||
|
||
ci-test: | ||
service postgresql start | ||
psql -1 -f ./db.sql | ||
poetry install | ||
pytest |