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

Ouranosinc / xclim / 45207993828
90%

Build:
DEFAULT BRANCH: main
Ran 23 Nov 2026 03:45PM UTC
Jobs 8
Files 63
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

23 Nov 2026 03:41PM UTC coverage: 90.487%. Remained the same
45207993828

push

github

web-flow
Options as ContextVars (#2477)

### Pull Request Checklist:
- [x] This PR addresses an already opened issue
    - This PR fixes #2470
- [x] Tests for the relevant changes have been added to this PR
- [x] Documentation has been added / updated
- [x] CHANGELOG.rst has been updated (with a short summary of the main
changes)
- [x] Links to issue (:issue:`number`) and pull request (:pull:`number`)
have been added

### What kind of change does this PR introduce?
Changes all options as `ContextVars` (thanks @turban, I didn't know
about these) so that their values are thread-local, making setting
options thread-safe.

This changes how options are retrieved and set, so I added `get_options`
a function to get the full dictionary of the options as values.

Some more logic was needed for missing options because "setting" them is
in fact updating a dictionary.

### Does this PR introduce a breaking change?
Retrieving options with `xc.core.options.OPTIONS[NAME]` will not work
now, but I don't think we ever advertised this way of doing things ? One
would need to call `xc.core.options.OPTIONS[NAME].get()`, or rather use
the new `get_options`.

31 of 35 new or added lines in 6 files covered. (88.57%)

8247 of 9114 relevant lines covered (90.49%)

7.63 hits per line

Uncovered Changes

Lines Coverage ∆ File
4
93.23
-0.42% src/xclim/core/missing.py
Jobs
ID Job ID Ran Files Coverage
1 run-3.12-ubuntu-latest-doctests - 45207993828.1 23 Nov 2026 03:45PM UTC 63
55.77
GitHub Action Run
2 run-3.14-ubuntu-latest- - 45207993828.2 23 Nov 2026 03:47PM UTC 63
86.3
GitHub Action Run
3 run-3.12-ubuntu-latest-offline - 45207993828.3 23 Nov 2026 03:52PM UTC 63
89.17
GitHub Action Run
4 run-3.13-windows-latest-prefetch - 45207993828.4 23 Nov 2026 03:54PM UTC 63
88.97
GitHub Action Run
5 run-3.12-ubuntu-latest- - 45207993828.5 23 Nov 2026 03:47PM UTC 63
86.31
GitHub Action Run
6 run-3.13-ubuntu-latest- - 45207993828.6 23 Nov 2026 03:48PM UTC 63
86.86
GitHub Action Run
7 run-{{ matrix.python-version }}-conda - 45207993828.7 23 Nov 2026 03:46PM UTC 63
89.76
GitHub Action Run
8 run-3.13-macos-latest- - 45207993828.8 23 Nov 2026 03:48PM UTC 63
89.75
GitHub Action Run
Source Files on build 45207993828
  • Tree
  • List 63
  • Changed 6
  • Source Changed 6
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #45207993828
  • eed6697b on github
  • Prev Build on main (#45193931103)
  • Next Build on main (#45702715480)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc