From ad7f42c23ea3fd5b1f5a152f3d99cd2cfd56ab40 Mon Sep 17 00:00:00 2001 From: Mike Gerber Date: Fri, 4 Aug 2023 18:53:58 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A7=20GitHub=20Actions:=20Avoid=20comp?= =?UTF-8?q?iling=20OpenCV=20and=20NumPy=20on=20Python=203.6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/test.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 48802c0..39375cc 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -33,6 +33,11 @@ jobs: - name: Update pip run: python3 -m pip install -U pip + - name: Avoid compiling OpenCV and NumPy on Python 3.6 + run: | + if python3 --version | grep -q "Python 3.6"; then + pip install --prefer-binary -U opencv-python-headless numpy + fi - name: Install requirements*.txt run: | for requirements_txt in requirements*.txt; do