• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Ouranosinc / xclim / 10604210263
92%

Build:
DEFAULT BRANCH: main
Ran 28 Aug 2024 08:55PM UTC
Jobs 8
Files 71
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

28 Aug 2024 08:49PM UTC coverage: 89.155% (+0.07%) from 89.09%
10604210263

push

github

web-flow
Use pooch (#1889)

<!--Please ensure the PR fulfills the following requirements! -->
<!-- If this is your first PR, make sure to add your details to the
AUTHORS.rst! -->
### Pull Request Checklist:
- [x] This PR addresses an already opened issue (for bug fixes /
features)
- This PR relies on changes to be merged in
https://github.com/Ouranosinc/xclim-testdata/pull/29
- [x] Tests for the changes have been added (for bug fixes / features)
- [x] (If applicable) Documentation has been added / updated (for bug
fixes / features)
- [x] CHANGELOG.rst has been updated (with summary of main changes)
- [x] Link to issue (:issue:`number`) and pull request (:pull:`number`)
has been added

### What kind of change does this PR introduce?

* Replaces the logic for file gathering and caching from the in-house
developed version to instead use `pooch`.
  * In order to fetch testing data, one can now use the following:
  ```python
  from xclim.testing.utils import nimbus

  n = nimbus()
# from a fork of xclim-testdata:
nimbus(repo="https://github.com/Me/My_Repo", branch="my_test_branch")
  file = n.fetch("some_folder/some_data.nc")
  ```
* Removes the remote GitHub calls for every file request (which was
performed by `_get()`).
* Exports most of the file request and cache handling to `pooch`, while
maintaining a relatively unchanged API for users.
* (To be confirmed) Speeds up the delivery of test data to tests by
reducing the amount of redundant calls to fixtures and relying on a
single pooch instance of pooch to prevent multiple setup stages.

### Does this PR introduce a breaking change?

Absolutely. `get_file` and `open_dataset` no longer fetch remote files
from GitHub. Instead, a locally-stored `registry.txt` file contains all
the checksums of all files needed to run the tests and returns the
appropriate file from a locally-held cache. If the file checksum does
not match the expected value, it will attempt to replace it from... (continued)

105 of 182 new or added lines in 4 files covered. (57.69%)

9 existing lines in 3 files now uncovered.

9100 of 10207 relevant lines covered (89.15%)

7.5 hits per line

Jobs
ID Job ID Ran Files Coverage
1 run-3.12-ubuntu-latest-standard - 10604210263.1 28 Aug 2024 09:04PM UTC 0
81.34
GitHub Action Run
2 run-3.9-windows-latest-py39-coverage-prefetch - 10604210263.2 28 Aug 2024 09:04PM UTC 0
81.27
GitHub Action Run
3 run-3.10-macos-latest-py310-coverage-extras - 10604210263.3 28 Aug 2024 09:04PM UTC 0
86.87
GitHub Action Run
4 run-3.9-ubuntu-latest-py39-coverage-offline-prefetch - 10604210263.4 28 Aug 2024 09:04PM UTC 0
81.42
GitHub Action Run
5 10604210263.5 28 Aug 2024 09:04PM UTC 0
81.42
GitHub Action Run
6 run-3.10-ubuntu-latest-standard - 10604210263.6 28 Aug 2024 09:04PM UTC 0
81.32
GitHub Action Run
7 run-{{ matrix.python-version }}-conda - 10604210263.7 28 Aug 2024 09:04PM UTC 0
87.03
GitHub Action Run
8 run-3.11-ubuntu-latest-standard - 10604210263.8 28 Aug 2024 09:04PM UTC 0
83.26
GitHub Action Run
Source Files on build 10604210263
Detailed source file information is not available for this build.
  • Back to Repo
  • c3045b1c on github
  • Prev Build on main (#10508103166)
  • Next Build on main (#10604624069)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc