Reboot RPi CI to fix an issue (#10189)

Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
This commit is contained in:
Lakshantha Dissanayake 2024-04-20 11:58:34 -07:00 committed by GitHub
parent 911a0edd2d
commit 5a82b51107
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -247,6 +247,8 @@ jobs:
- name: Pytest tests - name: Pytest tests
run: | run: |
pytest --slow tests/ pytest --slow tests/
- name: Reboot # run a reboot command in the background to free resources for next run and not crash main thread
run: sudo bash -c "sleep 10; reboot" &
Conda: Conda:
if: github.repository == 'ultralytics/ultralytics' && (github.event_name == 'schedule' || github.event.inputs.conda == 'true') if: github.repository == 'ultralytics/ultralytics' && (github.event_name == 'schedule' || github.event.inputs.conda == 'true')