Centralized GitHub Actions workflows, issue templates and configuration for the control-toolbox organization's Julia packages.
- Reusable workflows (
on: workflow_call) that every package calls with a thin caller:uses: control-toolbox/CTActions/.github/workflows/<name>.yml@main. CI, coverage, documentation, breakage, formatting, spell check, CompatHelper, README generation, issue assignment, project board, and the release of a package, from its request to its registration (release.yml). - The release tool,
scripts/release/release.jl: the facts and the request of a release, its gate, the checked merge, the registration, the audit; andrelease.jl lint-changelog, the format of[Unreleased]for anyone who edits a changelog. - Workflows for the whole organization, run here on a schedule: the monthly
[compat]prune of every CT* package, the maintenance and watchdog of theoccidataself-hosted runner. - The organization's GitHub Apps,
ct-prune-compat, used by the workflows that write to other repositories, andct-release, which opens, merges and registers releases, in the jobs of an approved environment only. - Issue templates and the Dependabot configuration.
docs/README.md: the philosophy (centralize then call, opt-in labels), the catalog of every workflow with its page, and the conventions:
| Page | Content |
|---|---|
| Principles | The rules behind every workflow and script, and a checklist for a change |
| Labels | Opt-in triggers on pull requests, and their vocabulary |
| Runners | GitHub-hosted and self-hosted (GPU) runners, split CI |
| Secrets and registries | Every secret, ct-registry |
| GitHub Apps | ct-prune-compat, ct-release, and how to use one for something new |
| Repositories | Which repository has which workflow, and why |
| Recipes | A new repository, a change across the organization |
# .github/workflows/CI.yml in a control-toolbox package
name: CI
on:
push:
branches: [main]
tags: '*'
workflow_dispatch: # started by Labels.yml when a `run ci …` label is added to a PR
inputs:
pr: { required: false, default: '' }
target: { required: false, default: '' }
jobs:
test-cpu-github:
if: github.event_name == 'push' || inputs.target == 'github'
uses: control-toolbox/CTActions/.github/workflows/ci.yml@main
with:
runs_on: '["ubuntu-latest", "macos-latest", "windows-latest"]'
use_ct_registry: true
secrets:
SSH_KEY: ${{ secrets.SSH_KEY }}On a pull request the expensive workflows run on demand, by label: the package's
Labels.yml calls label-dispatch.yml, which starts
the workflow of the label just added.
More callers: one per page in docs/workflows/.
Five templates: Bug report, Feature request, Documentation suggestion, Developers (internal) and Blank issue. Discussions are redirected to GitHub Discussions.
Weekly updates of the GitHub Actions versions (.github/dependabot.yml).