Skip to content

Commit 942b937

Browse files
committed
fix(tests): Small corrections
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
1 parent 8c931f4 commit 942b937

2 files changed

Lines changed: 10 additions & 9 deletions

File tree

.github/workflows/cluster-faces-test.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -621,13 +621,6 @@ jobs:
621621
# detection database is restored from cache we can skip deploying the
622622
# ExApp entirely and go straight to clustering (pure PHP).
623623

624-
- name: Set up python 3.11
625-
if: steps.db-cache.outputs.cache-hit != 'true'
626-
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
627-
with:
628-
python-version: '3.11'
629-
cache: 'pip'
630-
cache-dependency-path: recognize_backend/requirements.txt
631624

632625
- name: Checkout recognize_backend ExApp
633626
if: steps.db-cache.outputs.cache-hit != 'true'
@@ -636,6 +629,14 @@ jobs:
636629
repository: nextcloud/recognize_backend
637630
path: recognize_backend
638631

632+
- name: Set up python 3.11
633+
if: steps.db-cache.outputs.cache-hit != 'true'
634+
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
635+
with:
636+
python-version: '3.11'
637+
cache: 'pip'
638+
cache-dependency-path: recognize_backend/requirements.txt
639+
639640
- name: Read recognize_backend version
640641
if: steps.db-cache.outputs.cache-hit != 'true'
641642
id: backendinfo

.github/workflows/full-run-test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ jobs:
400400
# Run cron a few times so SchedulerJob -> StorageCrawlJob -> Classify*Job run
401401
# in sequence and schedule the TaskProcessing tasks for the uploaded files.
402402
for i in $(seq 1 12); do
403-
./occ background:cron
403+
php cron.php -v
404404
sleep 30
405405
done
406406
@@ -412,7 +412,7 @@ jobs:
412412
NEXT_WAIT_TIME=0
413413
DETECTIONS=0
414414
until [ $NEXT_WAIT_TIME -eq 60 ] || [ "$DETECTIONS" -gt 0 ]; do
415-
./occ background:cron
415+
php cron.php -v
416416
DETECTIONS=$(sqlite3 data/nextcloud.db "select count(*) from oc_recognize_face_detections;" 2>/dev/null || echo 0)
417417
echo "face detections so far: $DETECTIONS (iteration $NEXT_WAIT_TIME)"
418418
sleep 30

0 commit comments

Comments
 (0)