Skip to content

Twice Daily Package Update Testing #127

Twice Daily Package Update Testing

Twice Daily Package Update Testing #127

Workflow file for this run

name: Twice Daily Package Update Testing
on:
schedule:
- cron: "0 0 * * *"
- cron: "0 12 * * *"
workflow_dispatch: # Allows manual triggering of the workflow
jobs:
update-dependencies-and-test:
name: Update dependencies and run tests
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-python-uv
with:
python-version: ${{ matrix.python-version }}
- run: uv sync --refresh --all-extras --dev --upgrade
- run: pytest .
- uses: jakebailey/pyright-action@v1
with:
pylance-version: latest-release
notify-on-failure:
name: Notify on failure
runs-on: ubuntu-latest
needs: update-dependencies-and-test
if: failure()
steps:
- name: Send Telegram Notification on Failure
uses: appleboy/telegram-action@master
with:
to: 438153389
token: ${{ secrets.TELEGRAM_TOKEN }}
message: |
New version of something broke Cadwyn!
${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}