Exercise4: Testing pipeline #47
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: Run test suite on PR | |
on: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.9 | |
- name: Install dependencies | |
run: pip install -r requirements.txt | |
- name: Install development dependencies | |
run: pip install -r requirements-dev.txt | |
- name: Run pytest and check test coverage by the pytest-cov plugin | |
run: pytest --cov=taskman -n auto | |
- name: Upload coverage reports to Codecov | |
uses: codecov/codecov-action@v3 |