Skip to content

Commit

Permalink
Run timm ONNX CI only once per day (#1594)
Browse files Browse the repository at this point in the history
fix
  • Loading branch information
fxmarty authored Dec 13, 2023
1 parent 7f4d7ee commit 0e76f44
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/test_export_onnx_cli_timm.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: Exporters ONNX CLI Timm / Python - Test
name: Exporters ONNX CLI Timm (scheduled) / Python - Test

on:
workflow_dispatch:
push:
branches: [ main ]
schedule:
- cron: 0 7 * * * # every day at 7am

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
Expand All @@ -30,4 +30,4 @@ jobs:
- name: Test with unittest
working-directory: tests
run: |
pytest exporters/onnx/test_exporters_onnx_cli.py -n auto -m "timm_test" -s --durations=0
RUN_SLOW=1 pytest exporters/onnx/test_exporters_onnx_cli.py -n auto -k "timm" -s --durations=0
2 changes: 1 addition & 1 deletion tests/exporters/onnx/test_exporters_onnx_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def _get_models_to_test(export_models_dict: Dict, library_name: str = "transform
"perceiver",
"encoder-decoder",
"vision-encoder-decoder",
"unispeech-sat"
"unispeech-sat",
]:
models_to_test.append(
(f"{model_type}_no_task_{model_name}", model_type, model_name, "auto", "default", False, False)
Expand Down

0 comments on commit 0e76f44

Please sign in to comment.