From 6eb587ef15a8a80d1fde80f24bc62fc804bed5d4 Mon Sep 17 00:00:00 2001 From: Glenn Jocher Date: Fri, 30 Aug 2024 03:35:38 +0200 Subject: [PATCH] Run Conda tests with aligned tag/version (#15904) --- .github/workflows/ci.yaml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index ca0e32ae..372b81e8 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -329,13 +329,13 @@ jobs: results = model.export(format='onnx', imgsz=160) " - name: PyTest - uses: nick-fields/retry@v2 - with: - timeout_minutes: 60 - max_attempts: 3 - command: | - git clone https://github.com/ultralytics/ultralytics - pytest ultralytics/tests + run: | + VERSION=$(conda list ultralytics | grep ultralytics | awk '{print $2}') + echo "Ultralytics version: $VERSION" + git clone https://github.com/ultralytics/ultralytics.git + cd ultralytics + git checkout tags/v$VERSION + pytest tests Summary: runs-on: ubuntu-latest