Skip to content
This repository has been archived by the owner on Mar 21, 2021. It is now read-only.

Commit

Permalink
Add test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
andreypopp committed Oct 11, 2020
1 parent fefe660 commit 8dddbb5
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/test.yaml
@@ -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
6 changes: 6 additions & 0 deletions Makefile
Expand Up @@ -18,3 +18,9 @@ test:

fmt:
@black qc0/ tests/

ci-test:
service postgresql start
psql -1 -f ./db.sql
poetry install
pytest

0 comments on commit 8dddbb5

Please sign in to comment.