Files
molecule-ai-plugin-molecule…/.gitea/workflows/minimal-ci.yml
T
hongming-ceo-delegated 29336b2c22
sop-checklist-gate / gate (pull_request_target) Failing after 17s
CI / validate (pull_request) Successful in 25s
minimal-ci / minimal-validate (pull_request) Successful in 25s
minimal-ci / minimal-validate (push) Successful in 27s
fix(ci): execute canonical baseline gate locally
2026-07-18 07:07:11 +00:00

42 lines
1.5 KiB
YAML

# Canonical inline baseline gate for satellite/channel/misc repositories.
# Cross-repository workflow_call is deliberately not used on Gitea 1.26.4.
name: minimal-ci
on: [push, pull_request]
permissions:
contents: read
jobs:
minimal-validate:
name: minimal-validate
runs-on: ubuntu-latest
timeout-minutes: 8
env:
MOLECULE_CI_REF: ce4f84f1c9851c3ee6a49a8d9862934dd9965c44
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065
with:
python-version: "3.11"
- name: Fetch immutable molecule-ci validator
run: |
test -n "${RUNNER_TEMP:-}"
CI_ROOT="$RUNNER_TEMP/molecule-ci-ssot"
mkdir "$CI_ROOT"
git init -q "$CI_ROOT"
git -C "$CI_ROOT" remote add origin \
https://git.moleculesai.app/molecule-ai/molecule-ci.git
git -C "$CI_ROOT" fetch -q --depth 1 origin "$MOLECULE_CI_REF"
git -C "$CI_ROOT" checkout -q --detach FETCH_HEAD
test "$(git -C "$CI_ROOT" rev-parse HEAD)" = "$MOLECULE_CI_REF"
- run: pip install --break-system-packages pyyaml -q
- name: Execute canonical baseline validator
run: |
set -o pipefail
python3 "$RUNNER_TEMP/molecule-ci-ssot/scripts/minimal_validate.py" "$GITHUB_WORKSPACE" \
| tee /tmp/minimal-validate.log
- name: Assert execution sentinel
run: grep -qxF 'minimal-validate:sentinel:executed' /tmp/minimal-validate.log