Daily Drift Checks #441
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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-latest, windows-latest] | |
python-version: ["3.8", "3.9", "3.10"] | |
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 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 |