CI workflows#

Built from .github/workflows/*.yml each time the site is built. Fix a wrong row there.

15 workflows. A trigger with path filters runs only when a changed file matches one of them; the filters are in the file.

Workflow

File

Triggers

Jobs

Nightly / PETSc validation

ci-nightly-petsc.yml
  • schedule 30 5 * * * (UTC)

  • workflow_dispatch

1

Nightly / Linux Suites

ci-nightly.yml
  • schedule 0 5 * * * (UTC)

  • workflow_dispatch

3

Weekly / Cross Platform

ci-weekly.yml
  • schedule 0 5 * * 0 (UTC)

  • workflow_dispatch

7

Docker / Build Smoke

docker-build.yml
  • push (branches main, dev; tags v*.*.*; 5 path filters)

  • pull_request (branches main, dev; 5 path filters)

  • workflow_dispatch

2

Docs / Deploy Pages (multi-version)

docs-deploy-pages.yml
  • push (branches main, dev; tags v*, !v*a*, !v*b*, !v*rc*; 9 path filters)

  • workflow_dispatch

1

Docs / Get started

docs-get-started.yml
  • push (branches main, dev; 6 path filters)

  • pull_request (branches main, dev; 6 path filters)

  • schedule 0 4 * * 1 (UTC)

  • workflow_dispatch

1

Docs / External links

docs-links.yml
  • schedule 0 6 * * 1 (UTC)

  • workflow_dispatch

1

Docs / Sphinx

docs.yml
  • push (branches main, dev; 13 path filters)

  • pull_request (branches main, dev; 13 path filters)

  • workflow_dispatch

5

CI / Main Gate

main-ci.yml
  • push (branches main, dev)

  • pull_request (branches main, dev)

  • workflow_dispatch

14

Performance / Benchmarks

perf.yml
  • pull_request (branches main, dev; 5 path filters)

  • workflow_dispatch

1

Solver / PETSc Smoke

petsc-smoke.yml
  • pull_request (8 path filters)

  • push (branches main, dev; 8 path filters)

  • schedule 17 4 * * 1 (UTC)

  • workflow_dispatch

1

Release / PyPI

publish.yml
  • push (tags v*.*.*)

  • workflow_dispatch

6

Security / Dependency Audit

security-audit.yml
  • pull_request (branches main, dev; 6 path filters)

  • schedule 20 5 * * 1 (UTC)

  • workflow_dispatch

1

Weekly / Install

weekly-install-test.yml
  • schedule 0 6 * * 1 (UTC)

  • workflow_dispatch

1

CI / Workflow Lint

workflow-lint.yml
  • push (branches main, dev; 1 path filters)

  • pull_request (branches main, dev; 1 path filters)

  • workflow_dispatch

1

Nightly / PETSc validation#

File .github/workflows/ci-nightly-petsc.yml.

Job

Steps

Nightly / validation PETSc on ${{ matrix.target_branch }}

(matrix)

  • actions/checkout@v7

  • Set up Miniforge

  • Install PETSc test environment

  • Run PETSc validation tests

  • Merge validation results

  • Upload validation results

Nightly / Linux Suites#

File .github/workflows/ci-nightly.yml.

Job

Steps

Nightly / extensive regression on ${{ matrix.target_branch }}

(matrix)

  • actions/checkout@v7

  • actions/setup-python@v7

  • Install system libraries

  • Install package and test extras

  • Drop coverage .pth shim

  • Install solver binaries

  • Run extensive regression

  • Run Whitebox-backed extensive regression (serial)

  • Combine and report coverage

  • Upload coverage to Codecov

Nightly / validation no PETSc on ${{ matrix.target_branch }}

(matrix)

  • actions/checkout@v7

  • actions/setup-python@v7

  • Install system libraries

  • Install package and test extras

  • Drop coverage .pth shim

  • Install solver binaries

  • Run validation tests

  • Merge validation results

  • Upload validation results

  • Report coverage

  • Upload coverage to Codecov

Nightly / integration coverage on ${{ matrix.target_branch }}

(matrix)

  • actions/checkout@v7

  • actions/setup-python@v7

  • Install system libraries

  • Install package, test and mesh extras

  • Drop coverage .pth shim

  • Install solver binaries

  • Run integration tests

  • Report coverage

  • Upload coverage to Codecov

Weekly / Cross Platform#

File .github/workflows/ci-weekly.yml.

Job

Steps

Weekly / ${{ matrix.os }} py${{ matrix.python-version }}

(matrix)

  • actions/checkout@v7

  • Put the test scratch in the runner temp folder

  • actions/setup-python@v7

  • Install Linux system libraries

  • Install package, test and docs extras

  • Install solver binaries

  • Run unit tests (parallel, without whitebox backend)

  • Run whitebox backend tests (serial)

  • Run fast regression

  • Run Whitebox-backed fast regression (serial)

  • Run analytical validation

Weekly / end-to-end Linux

  • actions/checkout@v7

  • actions/setup-python@v7

  • Install system libraries

  • Install package, test and mesh extras

  • Drop coverage .pth shim

  • Install solver binaries

  • Run e2e tests

  • Report coverage

  • Upload coverage to Codecov

Weekly / full regression Linux

  • actions/checkout@v7

  • actions/setup-python@v7

  • Install system libraries

  • Install package, test and mesh extras

  • Install solver binaries

  • Run full regression

  • Run Whitebox-backed regression (serial)

Weekly / dependencies ${{ matrix.bounds }}

(matrix)

  • actions/checkout@v7

  • actions/setup-python@v7

  • Install Linux system libraries

  • Write the requirements of the ${{ matrix.bounds }} end

  • Install the dependencies, then the package without them

  • Install solver binaries

  • Run the stored-format tiers

Weekly / frozen MODFLOW 6 gmsh run and its tolerance

  • actions/checkout@v7

  • actions/setup-python@v7

  • Install Linux system libraries

  • Install package, test and mesh extras

  • Install the solver binary of the frozen run

  • Replay the frozen run with one BLAS thread

  • Replay the frozen run with four BLAS threads

  • Write the processor and the numpy build beside the measures

  • Keep the measures

Weekly / package proof

  • actions/checkout@v7

  • actions/setup-python@v7

  • Install Linux system libraries

  • Install package, test extras and mutmut

  • Install external validity_frame package

  • Install solver binaries for the proof

  • Prove the test removals of the week

  • Keep the report

Weekly / Windows server path and two processes

  • actions/checkout@v7

  • Put the test scratch in the runner temp folder

  • actions/setup-python@v7

  • Install package, test and calibration extras

  • Install solver binaries

  • Run every Windows proof

  • Run the server and two-process tests

Docker / Build Smoke#

File .github/workflows/docker-build.yml.

Job

Steps

Docker / build and CLI smoke

  • actions/checkout@v7

  • Set up Docker Buildx

  • Build image (no push)

  • Smoke test image entrypoints

  • Smoke test the HTTP server inside image

  • Run hmp doctor inside image (advisory)

  • Play and replay a small run in the image

Docker / publish on ghcr.io

(after build)

  • actions/checkout@v7

  • Set up Docker Buildx

  • Log in to ghcr.io

  • Name the image and its tags

  • Build and push the image

  • Write the digest

  • Keep the digest

  • Play and replay a small run in the published image

Docs / Deploy Pages (multi-version)#

File .github/workflows/docs-deploy-pages.yml.

Job

Steps

Build ${{ github.ref_name }} and publish

  • actions/checkout@v7

  • actions/setup-python@v7

  • Install Linux system libraries

  • Install package and docs extras

  • Fetch the nightly validation results

  • Build this version only

  • Prepare the root files and the versions to remove

  • Publish this version

  • Stop the ssh-agent of the first publish

  • Publish the root files

  • Remove the versions the site no longer keeps

Docs / Get started#

File .github/workflows/docs-get-started.yml.

Job

Steps

Docs / Quick start py${{ matrix.python-version }}

(matrix)

  • actions/checkout@v7

  • actions/setup-python@v7

  • Install the package

  • Run the Quick start of the page

Docs / Sphinx#

File .github/workflows/docs.yml.

Job

Steps

Docs / html-strict py3.13

  • actions/checkout@v7

  • actions/setup-python@v7

  • Install Linux system libraries

  • Install package and docs extras

  • Build Sphinx html-strict

  • Check the written pages

  • Check the built site

  • Check the old URLs

  • Moved pages must be redirected

  • Generated documentation must match its source

  • Upload built HTML

Docs / typos

  • actions/checkout@v7

  • actions/setup-python@v7

  • Install typos

  • Check the spelling of the written pages

Docs / Vale

  • actions/checkout@v7

  • Install Vale

  • Check the house style of the written pages

Docs / guard tests

  • actions/checkout@v7

  • actions/setup-python@v7

  • Install package, test extras and sybil

  • Run the guard tests of the documentation

  • Check the references to docs paths

Docs / browser probe

(after html-strict)

  • actions/checkout@v7

  • actions/setup-python@v7

  • actions/setup-node@v7

  • actions/download-artifact@v8

  • Install the browser and axe-core

  • Probe the built site

  • Check the references against the built site

CI / Main Gate#

File .github/workflows/main-ci.yml.

Job

Steps

Quality / ruff

  • actions/checkout@v7

  • actions/setup-python@v7

  • Install ruff

  • Check lint rules

  • Check formatting

Security / gitleaks

  • actions/checkout@v7

  • Run Gitleaks CLI

Architecture / layers, surface and two threads

  • actions/checkout@v7

  • actions/setup-python@v7

  • Install package and test extras

  • Run architecture contract tests

Characterization / produced run py3.13

  • actions/checkout@v7

  • actions/setup-python@v7

  • Install Linux system libraries

  • Install package and test extras

  • Install the solver binary the characterization run needs

  • Run characterization tier

Tests / fast marker py${{ matrix.python-version }}

(matrix)

  • actions/checkout@v7

  • actions/setup-python@v7

  • Install Linux system libraries

  • Install package and test extras

  • Install external validity_frame package

  • Install solver binaries for fast tests

  • Collection gate

  • Run fast marker suite

  • Run Whitebox-backed fast tests (serial)

  • Run port tests

  • Run refusal tests

Tests / unit py3.13

  • actions/checkout@v7

  • actions/setup-python@v7

  • Install Linux system libraries

  • Install package, test, docs and mesh extras

  • Install external validity_frame package

  • Install the solver files the mesh, calibration and lab tests need

  • Run docstring examples

  • Run unit tests in parallel

  • Run Whitebox-backed unit tests (serial)

  • Keep the unit coverage data

Tests / scenarios py3.13

  • actions/checkout@v7

  • actions/setup-python@v7

  • Install Linux system libraries

  • Install package, test, calibration, mesh and mf6api extras

  • Install every solver binary

  • Run the scenarios

  • Keep the scenario coverage data

Coverage / floors per sub-package

(after unit, scenarios)

  • actions/checkout@v7

  • actions/setup-python@v7

  • Install coverage

  • actions/download-artifact@v8

  • actions/download-artifact@v8

  • Combine the unit and scenario data

  • Check the floor of each sub-package

  • Write the coverage XML

  • Upload coverage to Codecov

Proof / tests removed lose nothing

  • actions/checkout@v7

  • actions/setup-python@v7

  • Install Linux system libraries

  • Install package, test extras and mutmut

  • Install external validity_frame package

  • Install solver binaries for the proof

  • Prove that the removed tests lose nothing

  • Keep the selection and the report

Tests / integration py3.13

(after unit)

  • actions/checkout@v7

  • actions/setup-python@v7

  • Install Linux system libraries

  • Install package, test and mesh extras

  • Install solver binaries for integration tests

  • Run integration suite

Regression / fast solvers py3.12

  • actions/checkout@v7

  • actions/setup-python@v7

  • Install Linux system libraries

  • Install package and test extras

  • Install solver binaries for regression tests

  • Run fast regression suite

  • Run Whitebox-backed fast regression (serial)

Package / example catalog matches the tree

  • actions/checkout@v7

  • actions/setup-python@v7

  • Check sha256 of every file the catalog names

Package / wheel smoke py${{ matrix.python-version }}

(matrix)

  • actions/checkout@v7

  • actions/setup-python@v7

  • Install Linux system libraries

  • Install build tooling

  • Build wheel and sdist

  • Install wheel into fresh venv

  • Run hmp doctor from wheel install

Typing / mypy baseline py3.12 (advisory)

  • actions/checkout@v7

  • actions/setup-python@v7

  • Install package and mypy

  • Run mypy baseline

Performance / Benchmarks#

File .github/workflows/perf.yml.

Job

Steps

Performance / pairwise drift vs baseline

  • actions/checkout@v7

  • actions/setup-python@v7

  • Install Linux system libraries

  • Install package, test and performance extras

  • Run benchmark suite (serial, JSON dump)

  • Compare current vs baseline (fail if any ratio drifts > 50 pct)

  • Upload benchmark report

Solver / PETSc Smoke#

File .github/workflows/petsc-smoke.yml.

Job

Steps

Solver / PETSc smoke Linux

  • actions/checkout@v7

  • Set up Miniforge

  • Install PETSc test environment

  • Run PETSc smoke tests

Release / PyPI#

File .github/workflows/publish.yml.

Job

Steps

Release / CI gate on the tagged commit

  • actions/checkout@v7

  • Check the tagged commit is on main or dev

  • Check CI / Main Gate passed on the tagged commit

  • actions/setup-python@v7

  • Check the example catalog against the tree of the tag

Release / build sdist and wheel

(after gate)

  • actions/checkout@v7

  • actions/setup-python@v7

  • Install build tooling

  • Build distributions

  • Verify version matches tag

  • actions/upload-artifact@v7

Release / wheel test py${{ matrix.python-version }}

(matrix; after build)

  • actions/setup-python@v7

  • actions/download-artifact@v8

  • Install the wheel into a fresh venv

  • Import and run hmp doctor

Release / generate CycloneDX SBOM

(after build)

  • actions/checkout@v7

  • actions/setup-python@v7

  • actions/download-artifact@v8

  • Install SBOM tooling

  • Install built wheel into fresh venv

  • Generate CycloneDX SBOM (JSON)

  • actions/upload-artifact@v7

Release / upload to PyPI

(after build, wheel-test)

  • actions/download-artifact@v8

  • Publish to PyPI

Release / create GitHub release

(after publish, sbom)

  • actions/checkout@v7

  • actions/download-artifact@v8

  • actions/download-artifact@v8

  • Extract CHANGELOG section for tag

  • Classify release tag

  • Create release

Security / Dependency Audit#

File .github/workflows/security-audit.yml.

Job

Steps

Security / pip-audit

  • actions/checkout@v7

  • actions/setup-python@v7

  • Install pip-audit

  • Audit declared Python dependencies

Weekly / Install#

File .github/workflows/weekly-install-test.yml.

Job

Steps

pip-${{ matrix.method }} ${{ matrix.os }} py${{ matrix.python }}

(matrix)

  • actions/checkout@v7

  • actions/setup-python@v7

  • Install (${{ matrix.method }})

  • Import and doctor

CI / Workflow Lint#

File .github/workflows/workflow-lint.yml.

Job

Steps

CI / actionlint

  • actions/checkout@v7

  • Lint workflow files