Skip to content

Commit

Permalink
Merge pull request International-BMP-Database#178 from Geosyntec/cove…
Browse files Browse the repository at this point in the history
…rage-action-1

Create coverage.yml
  • Loading branch information
phobson committed Aug 20, 2020
2 parents e03c90f + f391916 commit 42a3818
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 28 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/check-test-coverage.yml
@@ -0,0 +1,30 @@
name: Run coverage via codecov
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.8
- name: Generate coverage report
run: |
python -m pip install --upgrade pip
pip install flake8 pytest
if [ -f requirements_dev.txt ]; then pip install -r requirements_dev.txt; fi
coverage run --source wqio check_wqio.py --doctest-modules --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
28 changes: 0 additions & 28 deletions .travis.yml

This file was deleted.

0 comments on commit 42a3818

Please sign in to comment.