Merge pull request #3 from f0rthsp4ce/crow-fff #45
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: Pytest | |
on: | |
push: | |
pull_request: | |
jobs: | |
compose-up-and-pytest: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v1 | |
- name: Build and Run Docker Compose | |
run: | | |
docker compose up --build -d | |
- name: Run pytest | |
run: | | |
docker compose exec api pytest -v -s --log-level DEBUG | |
- name: Stop and remove containers | |
run: | | |
docker compose down |