forked from aisingapore/PeekingDuck
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (40 loc) · 1.35 KB
/
weekly_system_test.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
name: Weekly System Test
on:
workflow_dispatch:
schedule:
- cron: "0 8 * * 0"
jobs:
system-checks:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
python-version: [3.6, 3.7, 3.8, 3.9]
steps:
- uses: actions/checkout@v2
with:
ref: dev
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install peekingduck locally
run: |
if [ "$RUNNER_OS" == "Windows" ]; then
TEST_VER=0.0.0dev
else
TEST_VER=`grep -m 1 TEST_VERSION ./tests/module_import/test_module_import.py | cut -d ' ' -f 3`
TEST_VER=`echo ${TEST_VER} | cut -d '"' -f 2`
fi
echo "test_module_import.py TEST_VER=${TEST_VER}"
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -r requirements_cicd.txt
bash ./scripts/update_version.sh ${TEST_VER}
pip install . --no-dependencies
shell: bash
- name: Run import peekingduck as module tests
run: bash ./scripts/run_tests.sh module
- name: Run system-checks
uses: ./.github/actions/system-test # note only works after checkout@v2