Skip to content

Commit

Permalink
Commented out coverage upload in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
atteggiani committed Nov 6, 2024
1 parent 82158cb commit 006ef82
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,12 +113,12 @@ jobs:

- name: Run tests
shell: bash -l {0}
run: python -m pytest --cov=umpost --cov-report=xml -s test

- name: Upload code coverage
# Only upload once for the installed version
if: ${{ matrix.python-version == env.PY_VERSION }}
uses: codecov/codecov-action@b9fd7d16f6d7d1b5d2bec1a2887e65ceed900238 #v4.6.0
with:
token: ${{ secrets.codecov_token }}
files: ./coverage.xml
run: python -m pytest --cov=umpost --cov-report=html -s test

# - name: Upload code coverage
# # Only upload once for the installed version
# if: ${{ matrix.python-version == env.PY_VERSION }}
# uses: codecov/codecov-action@b9fd7d16f6d7d1b5d2bec1a2887e65ceed900238 #v4.6.0
# with:
# token: ${{ secrets.codecov_token }}
# files: ./coverage.xml
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ The `um2nc-standalone` project uses `pytest` and `pytest-cov`.<br>
To run the tests and generate print a coverage report (with missing lines) run:

```
$ python3 -m pytest --cov-report=term-missing --cov=umpost
python3 -m pytest --cov-report=term-missing --cov=umpost
```
> [!TIP]
> To generate an HTML coverage report substitute `term-missing` with `html`.
Expand Down

0 comments on commit 006ef82

Please sign in to comment.