nightly-test #190
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: nightly-test | |
on: | |
schedule: | |
- cron: "0 18 * * *" # Runs at 6:00 PM UTC every day, which is 2:00 AM Beijing Time the next day | |
jobs: | |
build: | |
runs-on: self-hosted | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: "3.10" | |
- name: install dependency | |
run: | | |
pip install . | |
pip install pytest onnxruntime | |
- name: benchmark test | |
run: | | |
python tests/test_benchmark.py | |
- name: model test | |
run: | | |
python -m pip install --upgrade pip wheel setuptools | |
pip install . | |
pip install pytest pytest-xdist onnxruntime timm torchvision --no-cache-dir --extra-index-url https://download.pytorch.org/whl/cpu | |
python tests/test_onnx_nets.py |