| 1 | name: Reddit canary |
| 2 | |
| 3 | # Live check of the keyless Reddit floor (Brave, DuckDuckGo, Startpage) and |
| 4 | # the Arctic Shift hydrator. Scheduled and manual only: it hits live services |
| 5 | # from a datacenter IP, so it must never gate a pull request. |
| 6 | on: |
| 7 | schedule: |
| 8 | - cron: "23 13 * * *" |
| 9 | workflow_dispatch: |
| 10 | |
| 11 | permissions: {} |
| 12 | |
| 13 | concurrency: |
| 14 | group: reddit-canary |
| 15 | cancel-in-progress: false |
| 16 | |
| 17 | jobs: |
| 18 | canary: |
| 19 | name: Reddit canary |
| 20 | runs-on: ubuntu-latest |
| 21 | timeout-minutes: 15 |
| 22 | permissions: |
| 23 | contents: read |
| 24 | steps: |
| 25 | - name: Checkout |
| 26 | uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 |
| 27 | with: |
| 28 | persist-credentials: false |
| 29 | |
| 30 | - name: Install uv |
| 31 | uses: astral-sh/setup-uv@1db35dd8eee11c5894872e0b383ae6c406cf738d # v10.4.0 |
| 32 | |
| 33 | - name: Set up Python |
| 34 | run: uv python install 3.12 |
| 35 | |
| 36 | # The previous run's verdict, for the "challenged two days running" |
| 37 | # rule. Each run saves a new entry; restore-keys picks the newest. |
| 38 | - name: Restore previous canary state |
| 39 | uses: actions/cache/restore@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 |
| 40 | with: |
| 41 | path: .reddit-canary |
| 42 | key: reddit-canary-state-${{ github.run_id }}-${{ github.run_attempt }} |
| 43 | restore-keys: | |
| 44 | reddit-canary-state- |
| 45 | |
| 46 | - name: Run canary |
| 47 | run: uv run --no-project --python 3.12 python skills/last30days/scripts/reddit_canary.py --state-file .reddit-canary/state.json --report .reddit-canary/report.json |
| 48 | |
| 49 | - name: Save canary state |
| 50 | if: always() |
| 51 | uses: actions/cache/save@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 |
| 52 | with: |
| 53 | path: .reddit-canary |
| 54 | key: reddit-canary-state-${{ github.run_id }}-${{ github.run_attempt }} |
| 55 |