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

Ouranosinc / miranda / 15475416758
18%

Build:
DEFAULT BRANCH: main
Ran 05 Jun 2025 07:22PM UTC
Jobs 7
Files 60
Run time 2min
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

05 Jun 2025 07:19PM UTC coverage: 17.981% (+2.4%) from 15.576%
15475416758

push

github

web-flow
Testing Data and Distributed Testing (#241)

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

* Adds a helper function (`cassini`) for fetching data from the newly
minted `Ouranosinc/miranda-testdata`.
* The testing data fetching mechanism from `xclim` has been largely
adapted to `miranda`.
  * This can be found in the new `miranda.testing` module.
* The data registry (`miranda/testing/registry.txt`) is now the
mechanism for tracking and validating testing data.
  * New testing fixtures are available:
    * `open_dataset`: for one-off fetching a dataset (in notebooks)
    * `cassini`: for fetching data in `pytests` (`cassini.fetch()`)
* `era5_precip`: for fetching and unzipping the ERA5 precipitation zip
file containing `tp` and `ptype`. Returns a dictionary with file
locations.
* `show_versions()` is now based on `xclim.testing.show_versions()` in
order to reduce (some) redundancy. The dependencies are now fetched
dynamically, same as can be found in `xscen` (full credit to @RondeauG).
* This PR adds a few tests to some helper functions and fixes a few
small issues with them.

### Does this PR introduce a breaking change?

Yes:
* `publish_release_notes()` has moved to `testing` as it's a publishing
helper function and not an actual utility.
* The `dev` recipe now requires `pytest-xdist` for multithreaded testing
(this will be handy for any tests that rely on external requests).
* The existing CMIP5-based testing data found under `tests` has been
removed (it wasn't used anywhere in the code base).

### Other information:

https://github.com/Ouranosinc/miranda-testdata

158 of 200 new or added lines in 7 files covered. (79.0%)

7 existing lines in 4 files now uncovered.

1133 of 6301 relevant lines covered (17.98%)

1.24 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
11.78
0.0% src/miranda/decode/_decoder.py
1
0.0
0.0% src/miranda/preprocess/eccc.py
40
79.17
src/miranda/testing/utils.py

Uncovered Existing Lines

Lines Coverage ∆ File
1
0.0
0.0% src/miranda/eccc/_support_rvt.py
1
0.0
0.0% src/miranda/preprocess/eccc.py
1
34.46
4.73% src/miranda/utils.py
4
93.22
-6.78% src/miranda/cv.py
Jobs
ID Job ID Ran Files Coverage
1 run-Python3.12-conda - 15475416758.1 05 Jun 2025 07:22PM UTC 60
17.74
GitHub Action Run
2 run-3.12 - 15475416758.2 05 Jun 2025 07:23PM UTC 60
17.81
GitHub Action Run
3 run-Python3.11-conda - 15475416758.3 05 Jun 2025 07:22PM UTC 60
17.74
GitHub Action Run
4 run-3.11 - 15475416758.4 05 Jun 2025 07:23PM UTC 60
17.81
GitHub Action Run
5 run-3.10 - 15475416758.5 05 Jun 2025 07:23PM UTC 60
17.81
GitHub Action Run
6 run-Python3.13-conda - 15475416758.6 05 Jun 2025 07:22PM UTC 60
17.74
GitHub Action Run
7 run-Python3.10-conda - 15475416758.7 05 Jun 2025 07:22PM UTC 60
17.74
GitHub Action Run
Source Files on build 15475416758
  • Tree
  • List 60
  • Changed 16
  • Source Changed 9
  • Coverage Changed 11
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #15475416758
  • f3847479 on github
  • Prev Build on main (#15423891849)
  • Next Build on main (#15493272701)
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