Skip to content

Commit

Permalink
Add Github workflow for pytest
Browse files Browse the repository at this point in the history
  • Loading branch information
Yrob committed Jun 7, 2024
1 parent 02d9676 commit 06a0072
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 06a0072

Please sign in to comment.