-
Notifications
You must be signed in to change notification settings - Fork 24
45 lines (35 loc) · 1.11 KB
/
nightly.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
37
38
39
40
41
42
43
44
45
name: Nightly Wagtail Test
on:
schedule:
- cron: '0 1 * * *'
# At 01:00, daily
workflow_dispatch:
jobs:
nightly-wagtail-test:
runs-on: ubuntu-latest
env:
WEBHOOK_EXISTS: ${{ secrets.SLACK_WEBHOOK_URL != '' }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
- name: Install Node dependencies
run: npm ci
- name: Build static files
run: ./node_modules/.bin/webpack --mode production
- uses: actions/setup-python@v5
with:
python-version: '3.11'
- run: git clone https://github.com/wagtail/wagtail.git
- run: python -Im pip install flit
- run: flit install --deps production --extras testing
- run: python -Im pip install ./wagtail
- run: pytest
- name: Report failure
run: |
python -Im pip install requests
python ./.github/scripts/report_nightly_build_failure.py
if: ${{ failure() && env.WEBHOOK_EXISTS == 'true' }}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}