Skip to content

Charles/review

Charles/review #56

Workflow file for this run

name: Tests
on: [push, pull_request]
jobs:
pytest:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.10'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest coverage
pip install .
- name: Run pytest with coverage
run: coverage run -m pytest
- name: Report coverage
run: |
coverage html
coverage report --fail-under=75
- name: Upload coverage report
uses: actions/upload-artifact@v2
with:
name: coverage-report
path: ./htmlcov