Spaces:
Running
Running
Download .github/workflows/alert.yml from Sdm0/opencodereview: direct link, hf CLI and curl.
- Browser
- Download file 1.06 kB
-
https://huggingface.co/spaces/Sdm0/opencodereview/resolve/main/.github/workflows/alert.yml
- Command line
-
hf download hf://spaces/Sdm0/opencodereview/.github/workflows/alert.yml
-
curl -L -o alert.yml https://huggingface.co/spaces/Sdm0/opencodereview/resolve/main/.github/workflows/alert.yml
1.06 kB
| name: Alerting — Smoke-test monitor | |
| on: | |
| schedule: | |
| # Every 6 hours | |
| - cron: "0 */6 * * *" | |
| workflow_dispatch: # Allow manual trigger | |
| jobs: | |
| smoke-alert: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -r requirements.txt | |
| - name: Run alert check | |
| env: | |
| GROQ_API_KEY: ${{ secrets.GROQ_API_KEY }} | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }} | |
| SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} | |
| LANGFUSE_PUBLIC_KEY: ${{ secrets.LANGFUSE_PUBLIC_KEY }} | |
| LANGFUSE_SECRET_KEY: ${{ secrets.LANGFUSE_SECRET_KEY }} | |
| run: | | |
| python scripts/alert.py \ | |
| --baseline-file scripts/alert_baseline.json \ | |
| --discord-webhook "$DISCORD_WEBHOOK" \ | |
| --slack-webhook "$SLACK_WEBHOOK" | |