Skip to content

Commit

Permalink
MNT: fix path for notebook coverage (#157)
Browse files Browse the repository at this point in the history
* MNT: fix path for notebook coverage
* MNT: fix xml filename
* DOC: add history.md entry
  • Loading branch information
kmuehlbauer authored Feb 28, 2024
1 parent 045b510 commit a854715
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ jobs:
python -c "import xradar; print(xradar.version.version)"
- name: Test with pytest
run: |
pytest -n auto --dist loadfile --verbose --durations=15 --cov-report xml:coverage_notebooks.xml --cov=xradar --pyargs examples/notebooks
pytest -n auto --dist loadfile --verbose --durations=15 --cov-report xml:coverage_notebook.xml --cov=xradar --pyargs examples/notebooks
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
Expand Down
1 change: 1 addition & 0 deletions docs/history.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
* MNT: Update GitHub actions, address DeprecationWarnings ({pull}`153`) by [@kmuehlbauer](https://github.com/kmuehlbauer).
* MNT: restructure odim.py/gamic.py, add test_odim.py/test_gamic.py ({pull}`154`) by [@kmuehlbauer](https://github.com/kmuehlbauer).
* MNT: use CODECOV token ({pull}`155`) by [@kmuehlbauer](https://github.com/kmuehlbauer).
* MNT: fix path for notebook coverage ({pull}`157`) by [@kmuehlbauer](https://github.com/kmuehlbauer).

## 0.4.3 (2024-02-24)

Expand Down
5 changes: 3 additions & 2 deletions examples/notebooks/conftest.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python
# Copyright (c) 2019-2022, wradlib developers.
# Copyright (c) 2022, openradar developers.
# Copyright (c) 2022-2024, openradar developers.
# Distributed under the MIT License. See LICENSE.txt for more info.

import os
Expand Down Expand Up @@ -45,7 +45,8 @@ def from_parent(cls, parent, name):
return cls(parent=parent, name=name)

def runtest(self):
cur_dir = os.path.dirname(self.path)
# use current path to get coverage working
cur_dir = os.getcwd()

# See https://bugs.python.org/issue37373
if (
Expand Down

0 comments on commit a854715

Please sign in to comment.