Add --hard-fail argument to benchmarks for CI errors (#8513)

* Add `--hard-fail` list argument to benchmarks for CI

Will cause CI to fail on a benchmark failure for given indices.

* Update ci-testing.yml

* Attempt Failure (CI should fail)

* Update benchmarks.py

* Update export.py

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Update benchmarks.py

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Update ci-testing.yml

* Update benchmarks.py

* Update benchmarks.py

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
Glenn Jocherandpre-commit-ci[bot] authored and GitHub committed 2022-07-07 23:41:34 +02:00
1 parent 39d7a93619
commit 3e54651fca
3 files changed
+25 -17

No files matched your search

+1 -1
View File
@@ -39,7 +39,7 @@ jobs:
pip list
- name: Run benchmarks
run: |
python utils/benchmarks.py --weights ${{ matrix.model }}.pt --img 320
python utils/benchmarks.py --weights ${{ matrix.model }}.pt --img 320 --hard-fail
Tests:
timeout-minutes: 60