From e9bb295ad364a80b6a19ed9c2c69903bb86fcc53 Mon Sep 17 00:00:00 2001 From: inisis <46103969+inisis@users.noreply.github.com> Date: Mon, 1 Jul 2024 20:30:12 +0800 Subject: [PATCH] Update ci.yml --- .github/workflows/ci.yml | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a309f67..82da9ed 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,11 +17,20 @@ jobs: with: python-version: "3.10" - - name: model zoo test + - name: install dependency run: | - python -m pip install --upgrade pip wheel setuptools pip install . pip install pytest onnxruntime + + - name: yolo test + run: | + pip install pytest pytest-xdist onnxruntime timm torchvision --no-cache-dir --extra-index-url https://download.pytorch.org/whl/cpu + pip install ultralytics + pytest tests/test_yolo.py + + - name: model zoo test + run: | + python -m pip install --upgrade pip wheel setuptools python tests/test_folder.py --model-dir /root/data/modelzoo - name: pattern matcher test @@ -31,9 +40,3 @@ jobs: - name: pattern generator test run: | pytest tests/test_pattern_generator.py - - - name: yolo test - run: | - pip install pytest pytest-xdist onnxruntime timm torchvision --no-cache-dir --extra-index-url https://download.pytorch.org/whl/cpu - pip install ultralytics - pytest tests/test_yolo.py