-
Notifications
You must be signed in to change notification settings - Fork 21
36 lines (33 loc) · 1.11 KB
/
nightly-tests.yml
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
name: Nightly Wagtail test
on:
schedule:
- cron: "20 1 * * *"
workflow_dispatch:
jobs:
nightly-test:
# Cannot check the existence of secrets, so limiting to repository name to prevent all forks to run nightly.
# See: https://github.com/actions/runner/issues/520
if: ${{ github.repository == 'torchbox/wagtail-experiments' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.12
uses: actions/setup-python@v2
with:
python-version: "3.12"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install "git+https://github.com/wagtail/wagtail.git@main#egg=wagtail"
pip install wagtail-modeladmin
pip install -e .[testing]
- name: Test
id: test
continue-on-error: true
run: ./runtests.py
- name: Send Slack notification on failure
if: steps.test.outcome == 'failure'
run: |
python .github/report_nightly_build_failure.py
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}