LidkeLab organization defaults, and the lab's shared Julia CI workflow.
Every lab Julia package, in LidkeLab, JuliaSMLM or a personal account, runs its CI through one
reusable workflow kept here, .github/workflows/julia-ci.yml. Each package carries only a short
caller, the same in every package except its with: lines. This repository is public because a
reusable workflow in a private repository can be called only from private repositories in the
same organization. It holds no secrets.
GitHub-hosted CI checks that a package installs and works on a clean machine. Correctness tests that need a GPU, lab data, long run times or an instrument run on a lab machine instead.
| Job | When | What |
|---|---|---|
test |
always | GROUP=Core tests at Julia min (the julia compat lower bound) and 1; a private repository runs 1 only |
qa |
always | GROUP=QA tests (Aqua, ExplicitImports) at Julia 1 |
downgrade |
registered: true, public repositories |
GROUP=Core at Julia min, the oldest supported Julia, with direct dependencies at the lowest versions [compat] allows |
pre |
registered: true, public repositories, scheduled runs only |
GROUP=Core at the Julia prerelease; allowed to fail |
format |
runic: true |
Runic formatting check |
All jobs run on ubuntu-latest, x64, with a 60-minute timeout, and skip draft pull requests. There
is no coverage upload and no docs job. The GROUP variable is read by the lab's standard
test/runtests.jl, which runs the test groups declared in test/test_groups.toml.
| Input | Type | Default | Meaning |
|---|---|---|---|
registered |
boolean | false |
The package is in the General registry: adds downgrade and the monthly pre run, in a public repository. |
runic |
boolean | false |
Adds the Runic formatting check. Runic checks every .jl file in the repository. |
project |
string | . |
Path to the package within the repository. |
assume-private |
boolean | false |
Runs only the jobs a private repository runs (below), whatever the repository's visibility. The self-test uses it. |
- Copy
templates/CI.ymlto.github/workflows/CI.yml. Change only thewith:lines, for exampleregistered: truefor a registered package. - Copy
templates/dependabot.ymlto.github/dependabot.ymlunchanged. Dependabot then opens a weekly pull request per dependency, covering Julia compat bounds in every environment of the repository and the GitHub Actions versions. - Delete
.github/workflows/CompatHelper.yml, which Dependabot replaces, and the old CI workflow the caller replaces. - The package's tests must follow the lab's test layout: the standard
test/runtests.jl, atest/test_groups.toml, and at least theCoreandQAgroups.
The caller runs on pushes to main or master and on tags, on pull requests (including when a
draft is marked ready), on manual dispatch, and monthly. Changes only to Markdown files, dev/
or .claude/ do not start a run. A newer push to a pull request cancels the older run.
In a private repository, whose Actions minutes are paid, the jobs run once per pull request, when
it becomes ready for review: when it is opened or reopened and is not a draft, or when a draft is
marked ready. They also run on manual dispatch. Every other event skips every job, including a
later push to the pull request, a push to main and the monthly schedule (admiral decision 0025:
the lab tests on its own machines, and its local record checks the Julia floor).
To test a later commit on GitHub, start the CI workflow by hand on the branch: the Actions tab,
or gh workflow run CI.yml --ref <branch>. A push while the one run is still going cancels it,
as in any repository, and no run replaces it. Public repositories run on every event.
A public repository saves its Julia cache only from the default branch, and pull requests restore
that cache. A private repository has no push runs, so every one of its runs saves: a pull request
restores the default branch's cache, which a manual workflow_dispatch run on main seeds, and a
run started by hand on a branch restores that branch's last cache. GitHub drops a cache unused
for 7 days, so the first run after a quiet week starts cold.
Callers use @v2. The v2 tag is moved forward only for backward-compatible changes: a new input
with a default that keeps the old behaviour, an updated action version, a fix. A change that could
turn a passing package red, or that removes or renames an input, is released as v3, and packages
move to it by editing their caller.
.github/workflows/selftest.yml runs the workflow from the same commit, with registered and
runic on, against a small fixture package in test/fixture/FixturePkg, on every push and pull
request. It runs it twice, as the public repository this is and with assume-private, and its
last job fails unless exactly the jobs expected for the event ran: for a push, the public set and
none of the private set; for a pull request marked ready, both.