This repository has been archived by the owner on Dec 26, 2024. It is now read-only.
Daily Package Update Testing #33
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Daily Package Update Testing | |
on: | |
schedule: | |
- cron: "0 0 * * *" | |
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.9", "3.10", "3.11", "3.12", "3.13"] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ./.github/actions/setup-python-poetry | |
with: | |
python-version: ${{ matrix.python-version }} | |
- run: poetry update | |
- run: poetry run pytest . | |
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 Pydantic duality! | |
${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} |