Update requirements #3
Workflow file for this run
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: CI - Pytest | |
on: | |
workflow_dispatch: | |
pull_request: | |
types: [opened, reopened, edited, synchronize] | |
env: | |
CATCHPY_DOTENV_PATH: docker_dotenv.env | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Build Docker images | |
run: | | |
docker compose -f docker-compose-test.yml build | |
- name: Run Docker Compose containers | |
run: | | |
docker compose -f docker-compose-test.yml up -d | |
- name: Run Pytest unit tests within Compose | |
run: | | |
docker compose -f docker-compose-test.yml exec web bash -c "tox" | |
- name: Stop Docker Compose containers | |
if: always() | |
run: docker compose -f docker-compose.yml down |