- added info msgs on tests #9
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: Test | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
docker: | |
timeout-minutes: 10 | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v1 | |
- name: Start containers | |
run: docker compose -f "docker-compose.yml" up -d --build | |
- name: Install requirements | |
run: pip install pytest requests | |
- name: Run tests | |
run: pytest tests/test-api.py | |
- name: Stop containers | |
if: always() | |
run: docker compose -f "docker-compose.yml" down |