.github/workflow-templates/ci-python.yml

24 lines
858 B
YAML

name: CI (Python / SAM)
on:
pull_request:
branches: [main]
merge_group:
jobs:
select-runner:
# Picks GitHub-hosted while Actions is operational, the org self-hosted
# runner otherwise. See callable-select-runner.yaml for the policy.
uses: Sea-Haven-Industries/.github/.github/workflows/callable-select-runner.yaml@REPLACE-ME # vX.Y.Z
permissions:
actions: read
ci:
needs: select-runner
uses: Sea-Haven-Industries/.github/.github/workflows/ci-python-sam.yaml@REPLACE-ME # vX.Y.Z
with:
runner: ${{ needs.select-runner.outputs.runner }}
run-tests: true
# ci-python-sam.yaml declares a `node-version` input (default "24") that
# feeds the CDK CLI when run-cdk-synth is enabled. Passed explicitly so
# the pin does not drift from local dev (Node 24 / npm 11).
node-version: "24"