Bump actions/checkout from 3 to 4 #31
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: Python unit tests | |
on: [push, pull_request] | |
jobs: | |
run-tests: | |
runs-on: "ubuntu-20.04" | |
steps: | |
- uses: actions/checkout@v4 | |
- name: "Set up Python 3.9" | |
uses: actions/setup-python@v3 | |
with: | |
python-version: 3.9 | |
- name: Install dependencies | |
run: pip install -e . | |
- name: Run tests with Pytest | |
run: python setup.py test | |
- name: Upload coverage report to codecov | |
if: ${{ success() }} | |
run: | | |
pip install codecov | |
codecov |