Skip to content

Exercise4: Testing pipeline #47

Exercise4: Testing pipeline

Exercise4: Testing pipeline #47

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