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

Qiskit / qiskit-fermions / 31718972030
98%

Build:
DEFAULT BRANCH: main
Ran 13 Aug 2026 04:16PM UTC
Jobs 1
Files 103
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

13 Aug 2026 04:06PM UTC coverage: 98.021%. Remained the same
31718972030

push

github

web-flow
ci: add caching to reduce runtime (#269)

* ci: cache the Qiskit SDK C API build

Building the Qiskit C API is the most expensive thing our CI does -- measured
between 4.7 minutes on Linux and 9.4 minutes on Windows, roughly half of every
test job's wall time -- and four workflows each did it from a fresh full-history
clone on every run, with no caching anywhere.

The build moves into a composite action so it exists once rather than four
times, and gains an `actions/cache` layer around it.  A composite action rather
than a reusable workflow because the latter runs on its own runner: the artifact
would have to cross a job boundary via `upload-artifact`, which is scoped to a
single run and so would give no reuse between runs at all.

The cache key covers the runner OS and architecture, the Python minor version
and the resolved Qiskit ref.  Python is not optional there: the library carries
a hard `NEEDED` on `libpython3.<minor>.so`.  The ref is resolved *before* the
lookup, and to a commit SHA rather than a branch name where it tracks `main`, so
that a hit means the same code rather than merely the same branch.  There are
deliberately no `restore-keys` for release and pinned builds, where a near-miss
would mean silently testing a different Qiskit than the one reported.

The development suite is the exception: its ref moves continuously, so requiring
an exact match means paying the full build cost most often precisely when Qiskit
is busiest.  It accepts the newest cached build for its platform instead, which
trades a delayed signal for a faster one -- that suite is already permitted to
fail for upstream reasons with no local cause.  A stale restore is reported in
the log and the job summary, so that a failure there does not leave "my change
or an old Qiskit?" as an open question.  The nightly run is exempt: it resolves
the tip once in a preceding job and passes that commit to every leg, so it still
tests the actual tip and cannot drift between legs.

`upd... (continued)

12087 of 12331 relevant lines covered (98.02%)

528177.84 hits per line

Jobs
ID Job ID Ran Files Coverage
1 31718972030.1 13 Aug 2026 04:16PM UTC 103
98.02
GitHub Action Run
Source Files on build 31718972030
  • Tree
  • List 103
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #31718972030
  • 518a5799 on github
  • Prev Build on main (#31711362313)
  • Next Build on main (#31722189787)
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