diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml new file mode 100644 index 000000000..ecfb3b4a4 --- /dev/null +++ b/.github/workflows/test.yaml @@ -0,0 +1,31 @@ +name: Test + +on: + push: + branches: + - features/** + pull_request: + branches: + - main + - master + +jobs: + docker: + timeout-minutes: 10 + runs-on: ubuntu-latest + env: + INITIALIZE_DB: false + + steps: + - name: Checkout + uses: actions/checkout@v1 + + - name: Start containers + run: docker compose -f "docker-compose.yml" up -d --build + + - name: Run tests + run: docker compose exec -T web pytest -v + + - name: Stop containers + if: always() + run: docker compose -f "docker-compose.yml" down \ No newline at end of file