forked from International-BMP-Database/wqio
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request International-BMP-Database#178 from Geosyntec/cove…
…rage-action-1 Create coverage.yml
- Loading branch information
Showing
2 changed files
with
30 additions
and
28 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file was deleted.
Oops, something went wrong.