weekly-tests-cpu #114
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: weekly-tests-cpu | |
on: | |
# weekly tests for existing bundles in release | |
schedule: | |
- cron: "0 5 * * 0" # 5:00, every Sunday | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
get-list: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python 3.9 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.9 | |
- name: cache weekly timestamp | |
id: pip-cache | |
run: | | |
echo "datew=$(date '+%Y-%V')" >> $GITHUB_OUTPUT | |
- name: cache for pip | |
uses: actions/cache@v2 | |
id: cache | |
with: | |
path: ~/.cache/pip | |
key: ${{ runner.os }}-pip-${{ steps.pip-cache.outputs.datew }} | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip wheel | |
python -m pip install -r requirements-dev.txt | |
- name: get bundle list | |
id: get-bundle-list | |
run: | | |
# clean up temporary files | |
$(pwd)/runtests.sh --clean | |
echo "list=$(python $(pwd)/ci/get_bundle_list.py --models_path $(pwd)/models/)" >> $GITHUB_OUTPUT | |
shell: bash | |
outputs: | |
list: ${{ steps.get-bundle-list.outputs.list }} | |
test-cpu: | |
needs: get-list | |
strategy: | |
matrix: | |
bundle: ${{ fromJson(needs.get-list.outputs.list) }} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python 3.9 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.9 | |
- name: cache weekly timestamp | |
id: pip-cache | |
run: | | |
echo "::set-output name=datew::$(date '+%Y-%V')" | |
- name: cache for pip | |
uses: actions/cache@v2 | |
id: cache | |
with: | |
path: ~/.cache/pip | |
key: ${{ runner.os }}-pip-${{ steps.pip-cache.outputs.datew }} | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip wheel | |
- name: check | |
run: | | |
# clean up temporary files | |
$(pwd)/runtests.sh --clean | |
bash $(pwd)/ci/run_regular_tests_cpu.sh ${{ matrix.bundle }} | |
shell: bash |