needed for heroku deploy (#554) #72
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
name: Run test suite | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
services: | |
docker: | |
image: docker:19.03.12 | |
options: --privileged | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Build and run the Docker containers | |
run: | | |
cp docker/docker.env.sample docker/docker.env | |
docker compose up --build -d | |
- name: Run pytest in Docker container | |
run: | | |
docker compose exec -t web pytest -v chipy_org/ |