Merge pull request #84 from phobson/update-readme #36
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: Coverage (with doctests) | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
run: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: "3.11" | |
- name: Generate coverage report | |
run: | | |
python -m pip install --upgrade pip | |
pip install pytest pytest-cov pytest-mpl coverage docopt | |
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | |
pip install scipy seaborn | |
export MPL_IMGCOMP_TOLERANCE=20 | |
coverage run -m pytest --mpl --doctest-glob="probscale/*.py" --cov-report=xml | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v1 | |
with: | |
# directory: ./coverage/reports/ | |
flags: unittests | |
name: codecov-umbrella | |
fail_ci_if_error: true | |
path_to_write_report: ./codecov_report.gz |