Skip to content

Commit 44a5cca

Browse files
committed
Add weekly cron job
1 parent 3e564ad commit 44a5cca

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Scheduled unit tests
2+
# Controls when the action will run.
3+
# Every week "At 07:17 on Sunday."
4+
# See https://crontab.guru/#17_7_*_*_7
5+
6+
# This way we know for sure package will keep working with
7+
# potential new downstream updates
8+
on:
9+
workflow_dispatch:
10+
schedule:
11+
- cron: "17 7 * * 7"
12+
13+
jobs:
14+
run:
15+
name: Run unit tests
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@master
19+
20+
- name: Setup Python
21+
uses: actions/setup-python@master
22+
with:
23+
python-version: 3.9
24+
25+
- name: Install dependencies
26+
run: |
27+
pip3 install --upgrade pip
28+
pip3 install --upgrade setuptools
29+
pip3 install --upgrade wheel
30+
pip3 install -r tests/test_requirements.txt
31+
pip3 install .
32+
33+
- name: Run unit tests
34+
run: |
35+
pytest
36+

0 commit comments

Comments
 (0)