fix: handle cancelled jobs #7
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: Tests | |
on: | |
push: | |
branches: main | |
pull_request: | |
branches: main | |
jobs: | |
run-tests: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.8.x' | |
- name: Install system dependencies | |
run: pip3 install pipenv | |
- name: Cache Python packages | |
uses: actions/cache@v3 | |
with: | |
path: ~/.local/share/virtualenvs/ | |
key: ${{ runner.os }}-python-${{ hashFiles('**/Pipfile.lock') }} | |
- name: Install Python dependencies | |
run: pipenv install --dev --deploy | |
- name: Install this package | |
run: pipenv run pip3 install . | |
- name: Run tests (with coverage) | |
run: make test-coverage | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v1 | |
with: | |
fail_ci_if_error: true |