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

23 lines
808 B
YAML

name: CI (Python / app)
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:
# Job id MUST stay `ci`: the reusable's aggregator job is also `ci`, so the
# check context resolves to the required `ci / ci`.
#
# Every input is optional. Common override: `source-dirs` (ruff targets).
needs: select-runner
uses: Sea-Haven-Industries/.github/.github/workflows/ci-python-app.yaml@REPLACE-ME # vX.Y.Z
with:
runner: ${{ needs.select-runner.outputs.runner }}