perf(build): run in the ci image instead of installing the tools every run
Build / build (pull_request) Successful in 37s
Lint / lint (pull_request) Successful in 5s

Same container and pin check as lint.yml.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
This commit is contained in:
ClaudeandClaude Sonnet 5.5 committed 2026-10-25 11:57:28 +00:00
1 parent c56797caaa
commit 8437e7cb66
1 file changed
+11 -11
+11 -11
View File
@@ -26,18 +26,12 @@ jobs:
build:
runs-on: kamino-docker
timeout-minutes: 30
# The ci image (images/ci, built by image.yml): tag for the release, digest enforced.
container:
image: ubuntu:24.04@sha256:68ee22004a9109b44973313b02ff7b1de250f1de0f5ecb628d73f579aaff33ac
image: git.rkdr.net/mortis/ci:0.1.0@sha256:f8925ce9024cb317f052545da6fc90369218962be636e683b6969e0779847d6a
env:
DEBIAN_FRONTEND: noninteractive
PIP_DISABLE_PIP_VERSION_CHECK: "1"
steps:
- name: Install OS packages
run: |
apt-get update
apt-get install -y --no-install-recommends \
ca-certificates git python3 python3-venv python3-pip
- name: Checkout the commit under test
env:
GIT_CONFIG_COUNT: "1"
@@ -59,10 +53,16 @@ jobs:
fi
echo "Checked out $(git rev-parse HEAD)"
- name: Install pinned tooling
# The baked tools match the pin files unless this change touches them; then the
# pinned tools are installed for this run, as before the ci image existed.
- name: Check the baked tooling against the pins
run: |
python3 -m venv /opt/venv
/opt/venv/bin/pip install --quiet -r requirements-dev.txt
if sha256sum --quiet -c /opt/ci-pins.sha256; then
echo "The pin files match the ci image; using the baked tools."
else
echo "::warning::requirements-dev.txt or .pre-commit-config.yaml differ from the ci image; installing the pinned tools for this run."
/opt/venv/bin/pip install --quiet -r requirements-dev.txt
fi
# ADR 0004, Release process: the tag is annotated and equals v + the galaxy.yml version.
- name: Check the release tag