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

Qiskit / qiskit-ibm-runtime / 29942340657
88%
main: 88%

Build:
Build:
LAST BUILD BRANCH: feature/physical-qubits
DEFAULT BRANCH: main
Ran 22 Jul 2026 05:30PM UTC
Jobs 8
Files 332
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

22 Jul 2026 05:26PM UTC coverage: 87.607% (-0.08%) from 87.69%
29942340657

push

github

web-flow
Use BaseModel for options_models (#3042)

### Summary

Proof of concept for using `BaseModel` for new program options at
`options_models`:
* Add `BaseOptionsModel` as the pure pydantic base class for options
   * replicates `update()` and `asdict()` for backwards compatibility
   * trims the `dir()` return for auto-completion conciseness
* Revise existing `option_models`
* inherit from `BaseOptionsModel` instead of using `pydantic.dataclass`
   * avoid `Field(default_factory=dict)` pattern, for readability
* use `Annotated` pattern for validators (replacing validators for
non-serializable classes with `InstanceOf`)
* revise docstrings (length, rely on types for users discovering
options, other misc tweaks)
   * focus on keeping them as containers and lean
      * conversion responsibilities moved to `converters.py`
      * revise class-level constants  
* Adjust the rest of the codebase
   * replace `asdict()` with `.model_dump()`
   * other misc adjustments
* Tests
   * add tests for the base model
   * adjust existing tests

### Details and comments

Fixes #3041

### AI/LLM disclosure

- [x] I didn't use LLM tooling, or only used it privately.

170 of 171 new or added lines in 29 files covered. (99.42%)

8985 of 10256 relevant lines covered (87.61%)

6.95 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
96.15
qiskit_ibm_runtime/options_models/base.py
Jobs
ID Job ID Ran Files Coverage
1 unit-tests_python3.13-ubuntu-latest - 29942340657.1 22 Jul 2026 05:30PM UTC 332
87.61
GitHub Action Run
2 unit-tests_python3.10-windows-latest - 29942340657.2 22 Jul 2026 05:31PM UTC 332
86.13
GitHub Action Run
3 unit-tests_python3.12-windows-latest - 29942340657.3 22 Jul 2026 05:31PM UTC 332
86.13
GitHub Action Run
4 unit-tests_python3.10-ubuntu-latest - 29942340657.4 22 Jul 2026 05:30PM UTC 332
87.61
GitHub Action Run
5 unit-tests_python3.13-windows-latest - 29942340657.5 22 Jul 2026 05:31PM UTC 332
86.13
GitHub Action Run
6 unit-tests_python3.11-windows-latest - 29942340657.6 22 Jul 2026 05:31PM UTC 332
86.13
GitHub Action Run
7 unit-tests_python3.11-ubuntu-latest - 29942340657.7 22 Jul 2026 05:30PM UTC 332
87.61
GitHub Action Run
8 unit-tests_python3.12-ubuntu-latest - 29942340657.8 22 Jul 2026 05:30PM UTC 332
87.61
GitHub Action Run
Source Files on build 29942340657
  • Tree
  • List 332
  • Changed 29
  • Source Changed 29
  • Coverage Changed 29
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #29942340657
  • 244b9cbb on github
  • Prev Build on gh-readonly-queue/main/pr-3067-a0d7e805c8ad62b4f971ab0bed536480acbfe38c (#29857492373)
  • Delete
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