Skip to content

Daily Drift Checks #821

Daily Drift Checks

Daily Drift Checks #821

name: Daily Drift Checks
on:
workflow_dispatch:
schedule:
# run at 6am SGT
- cron: "0 8 * * *"
jobs:
system-checks:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-18.04, windows-2019]
python-version: [3.6, 3.7, 3.8, 3.9]
steps:
- uses: actions/checkout@v2
- 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 cicd_requirements.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