From a60d150126c2b346bdfdc7bf7d56e72092130bb3 Mon Sep 17 00:00:00 2001 From: IlyasMoutawwakil Date: Mon, 7 Oct 2024 15:27:51 +0200 Subject: [PATCH] test --- .github/workflows/test_bettertransformer.yml | 7 +++++-- .github/workflows/test_export_onnx_cli.yml | 7 +++++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test_bettertransformer.yml b/.github/workflows/test_bettertransformer.yml index 1e66f04c420..ace9fb9c9e2 100644 --- a/.github/workflows/test_bettertransformer.yml +++ b/.github/workflows/test_bettertransformer.yml @@ -31,11 +31,14 @@ jobs: - name: Install dependencies (stable) run: | - pip uninstall -y opencv-python - pip install opencv-python-headless pip install --no-cache-dir torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu pip install .[tests] + - name: Install headless opencv + run: | + pip uninstall -y opencv-python + pip install opencv-python-headless + - name: Test with pytest (parallel) working-directory: tests run: | diff --git a/.github/workflows/test_export_onnx_cli.yml b/.github/workflows/test_export_onnx_cli.yml index 3320c34b7f0..ef7b0349eaa 100644 --- a/.github/workflows/test_export_onnx_cli.yml +++ b/.github/workflows/test_export_onnx_cli.yml @@ -31,11 +31,14 @@ jobs: - name: Install dependencies run: | - pip uninstall -y opencv-python - pip install opencv-python-headless pip install --no-cache-dir torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu pip install .[tests,exporters] git+https://github.com/huggingface/accelerate.git + - name: Install headless opencv + run: | + pip uninstall -y opencv-python + pip install opencv-python-headless + - name: Test with pytest (parallel) working-directory: tests run: |