Update setup.py #21
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
# GitHub Action that runs pytest with a coverage report | |
name: Run Pytest | |
on: [ push ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: # https://github.com/stefanzweifel/git-auto-commit-action#checkout-the-correct-branch | |
ref: ${{ github.head_ref }} | |
- name: Set up Python 3.10 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: "3.10" | |
architecture: 'x64' | |
- run: pip install -r requirements.txt | |
- name: Generate Report | |
run: | | |
pip install coverage | |
coverage run -m pytest --exitfirst --verbose --failed-first | |
- name: Upload Coverage to Codecov | |
uses: codecov/codecov-action@v3 |