Fix weekly test issue [skip-ci] #144
Workflow file for this run
This file contains hidden or 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: | |
on: | |
# code format check for pull requests and the dev branch | |
push: | |
branches: | |
- dev | |
pull_request: | |
jobs: | |
get-list: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python 3.10 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.10.14 | |
- name: cache weekly timestamp | |
id: pip-cache | |
run: | | |
echo "datew=$(date '+%Y-%V')" >> $GITHUB_OUTPUT | |
- name: cache for pip | |
uses: actions/cache@v4 | |
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 --upgrade setuptools | |
python -m pip install -r requirements.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@v4 | |
- name: Set up Python 3.10 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.10.14 | |
- name: cache weekly timestamp | |
id: pip-cache | |
run: | | |
echo "::set-output name=datew::$(date '+%Y-%V')" | |
- name: cache for pip | |
uses: actions/cache@v4 | |
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 --upgrade setuptools | |
- name: check | |
run: | | |
# clean up temporary files | |
$(pwd)/runtests.sh --clean | |
bash $(pwd)/ci/run_regular_tests_cpu.sh ${{ matrix.bundle }} | |
shell: bash |