Skip to content

Commit 73705dd

Browse files
authored
chore: add scheduled test run (#114)
1 parent f78f82d commit 73705dd

File tree

5 files changed

+50
-7
lines changed

5 files changed

+50
-7
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,15 @@ jobs:
2020
python: ["3.7", "3.8", "3.9", "3.10"]
2121
steps:
2222
- name: Checkout
23-
uses: actions/checkout@v2
23+
uses: actions/checkout@v3
2424
with:
2525
fetch-depth: 0 # gives the commit message linter access to all previous commits
2626

2727
- name: Commit lint
2828
if: ${{ matrix.python == '3.7' }}
2929
uses: wagoid/commitlint-github-action@v4
3030

31-
- uses: actions/setup-python@v2
31+
- uses: actions/setup-python@v3
3232
with:
3333
python-version: ${{ matrix.python }}
3434

.github/workflows/initiate_release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
name: 🚀 Create release PR
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: actions/checkout@v2
15+
- uses: actions/checkout@v3
1616
with:
1717
fetch-depth: 0 # gives the changelog generator access to all previous commits
1818

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
if: github.event.pull_request.merged && startsWith(github.head_ref, 'release-')
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: actions/checkout@v2
15+
- uses: actions/checkout@v3
1616
with:
1717
fetch-depth: 0
1818

@@ -27,7 +27,7 @@ jobs:
2727
const version = context.payload.pull_request.head.ref.split('-')[1]
2828
core.exportVariable('VERSION', version)
2929
30-
- uses: actions/setup-python@v2
30+
- uses: actions/setup-python@v3
3131
with:
3232
python-version: "3.10"
3333

.github/workflows/reviewdog.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ jobs:
1111
name: 🐶 Reviewdog
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v2
14+
- uses: actions/checkout@v3
1515

1616
- uses: reviewdog/action-setup@v1
1717
with:
1818
reviewdog_version: latest
1919

20-
- uses: actions/setup-python@v2
20+
- uses: actions/setup-python@v3
2121
with:
2222
python-version: "3.10"
2323

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Scheduled tests
2+
3+
on:
4+
workflow_dispatch:
5+
schedule:
6+
# Monday at 9:00 UTC
7+
- cron: "0 9 * * 1"
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v3
14+
15+
- uses: actions/setup-python@v3
16+
with:
17+
python-version: "3.10"
18+
19+
- name: Install deps with ${{ matrix.python }}
20+
run: pip install ".[test, ci]"
21+
22+
- name: Test
23+
env:
24+
STREAM_KEY: ${{ secrets.STREAM_KEY }}
25+
STREAM_SECRET: ${{ secrets.STREAM_SECRET }}
26+
PYTHONPATH: ${{ github.workspace }}
27+
run: |
28+
# Retry 3 times because tests can be flaky
29+
for _ in 1 2 3;
30+
do
31+
# make test && break
32+
test -f 'nonexistingfile.yml' && break
33+
done
34+
35+
- name: Notify Slack if failed
36+
uses: voxmedia/github-action-slack-notify-build@v1
37+
if: failure()
38+
with:
39+
channel_id: C02RPDF7T63
40+
color: danger
41+
status: FAILED
42+
env:
43+
SLACK_BOT_TOKEN: ${{ secrets.SLACK_NOTIFICATIONS_BOT_TOKEN }}

0 commit comments

Comments
 (0)