From ea2c59948ff1461ab5aefac72c0af47893d11798 Mon Sep 17 00:00:00 2001 From: Yosuke Shinya <42844407+shinya7y@users.noreply.github.com> Date: Tue, 18 Oct 2022 13:37:34 +0900 Subject: [PATCH] [CI] Fix CI for timm, pycocotools, onnx (#9034) * Fix CI by removing timm that requires torch>=1.7 * Fix CI for pycocotools and onnx --- .github/workflows/build.yml | 4 ++++ requirements/optional.txt | 1 - 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 066e70d10b0..6f8c57484a7 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -128,6 +128,8 @@ jobs: - name: Install mmdet dependencies run: | python -V + export CFLAGS=`python -c 'import sysconfig;print("-I"+sysconfig.get_paths()["include"])'` + export CXXFLAGS="${CFLAGS}" python -m pip install mmcv-full -f https://download.openmmlab.com/mmcv/dist/cu101/torch${{matrix.mmcv}}/index.html python -m pip install pycocotools python -m pip install -r requirements/tests.txt -r requirements/optional.txt @@ -206,6 +208,8 @@ jobs: - name: Install mmdet dependencies run: | python -V + export CFLAGS=`python -c 'import sysconfig;print("-I"+sysconfig.get_paths()["include"])'` + export CXXFLAGS="${CFLAGS}" python -m pip install mmcv-full -f https://download.openmmlab.com/mmcv/dist/cu102/torch${{matrix.mmcv}}/index.html python -m pip install pycocotools python -m pip install -r requirements/tests.txt -r requirements/optional.txt diff --git a/requirements/optional.txt b/requirements/optional.txt index 6782747cd96..da554cf35ec 100644 --- a/requirements/optional.txt +++ b/requirements/optional.txt @@ -2,4 +2,3 @@ cityscapesscripts imagecorruptions scipy sklearn -timm