-
Notifications
You must be signed in to change notification settings - Fork 29
42 lines (38 loc) · 1.21 KB
/
daily_tests.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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: tox run -e py
- 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 }}