# Weekly canary suite. Catches upstream regressions (broken pipelock
# image packaging at the pinned digest, etc.) without coupling every
# dev push to upstream registry availability.
#
# Opt-in via CLAUDE_BOTTLE_RUN_CANARIES=1 so the same files can be run
# locally with the same gating.

name: canaries

on:
  schedule:
    # 12:00 UTC every Monday.
    - cron: "0 12 * * 1"
  workflow_dispatch:

jobs:
  canaries:
    runs-on: ubuntu-latest
    env:
      CLAUDE_BOTTLE_RUN_CANARIES: "1"
    steps:
      - name: Checkout
        uses: actions/checkout@v4

      - name: Set up Python
        uses: actions/setup-python@v5
        with:
          python-version: "3.12"

      - name: Run canaries
        run: python3 -m unittest discover -t . -s tests/canaries -v
