Skip to content

Make CI faster - #14

Merged
MichaelFowler1 merged 2 commits into
mainfrom
ci/faster
Oct 1, 2026
Merged

MichaelFowler1 merged 2 commits into
mainfrom
ci/faster

Conversation

@MichaelFowler1

Copy link
Copy Markdown
Owner

Every push to a branch here started two identical CI runs (push and pull_request), so 22 jobs queued behind GitHub's 20-job limit, and a superseded commit's run always finished.

  • Each job skips the pull_request copy of a branch in this repository; its push run tests the same commit and those checks show on the PR. A pull request from a fork has no push here and still runs everything.
  • A newer commit cancels its branch's older run. The event is part of the group, so a push run and a pull_request run never cancel each other.
  • pytest runs on every core with pytest-xdist (-n auto): locally 1,381 tests in 49 s on four workers against 1 min 55 s on one, same results.
  • The Excel job caches the LibreOffice packages (actions/cache) and its install step has its own 10-minute limit. On 2.7.0: CERs, phasing, economic analysis, no numpy/scipy caps #13 a slow Ubuntu mirror stalled the install past the job's 15 minutes before any test ran.

No lane, Python version or check is removed. The workflow YAML parses and every job carries the condition.

…llel

Every push to a branch here started two identical runs, push and
pull_request, and 22 jobs queued behind the 20-job limit. Jobs now skip the
pull_request copy of a branch in this repository (a fork's still runs), a
newer commit cancels its branch's older run, pytest runs on all four cores
(1,381 tests in 49 s against 1 min 55 s), and the Excel job caches the
LibreOffice packages a slow mirror once stalled past its time limit.
The first run of the cache timed out at package 49 of about 50 on a slow
mirror, and actions/cache saves nothing from a failed job. Download, save
the cache whatever happened (keyed per run, restored newest first), then
install from it, so progress carries over to the next run.
@MichaelFowler1
MichaelFowler1 merged commit 603e0e7 into main Oct 1, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant