Use docker-compose in ci #5455
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 | |
on: [pull_request] | |
jobs: | |
ci: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Build container image | |
run: docker-compose -f docker-compose.test.yml build | |
- name: pytest | |
run: docker-compose -f docker-compose.test.yml run api pytest -n 4 --cov=signals --cov-report=term --cov-report=html:/tmp/test/htmlcov --no-cov-on-fail --tb=short | |
- name: flake8 | |
run: docker-compose -f docker-compose.test.yml run api flake8 signals | |
- name: isort | |
run: docker-compose -f docker-compose.test.yml run isort --diff --check-only signals tests | |
- name: spdx | |
run: docker-compose -f docker-compose.test.yml run python check_spdx.py . | |
- name: Upload coverage report | |
uses: actions/upload-artifact@v3 | |
with: | |
name: coverage-report | |
path: /tmp/test/htmlcov/ |