From 5811b3f74dabdf7600eac9feb92e18bc7aad405f Mon Sep 17 00:00:00 2001 From: Miao Zheng <76149310+MeowZheng@users.noreply.github.com> Date: Sun, 9 Oct 2022 16:13:08 +0800 Subject: [PATCH] [Fix] Ignore timm test in ircleCI (#2162) --- .circleci/config.yml | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 9456918aa..eccf5e295 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -61,17 +61,15 @@ jobs: name: Install mmseg dependencies command: | python -m pip install mmcv-full -f https://download.openmmlab.com/mmcv/dist/cpu/torch<< parameters.torch >>/index.html - python -m pip install mmdet python -m pip install -r requirements.txt - run: name: Build and install command: | python -m pip install -e . - run: - name: Run unittests + name: Run unittests but skip timm unittests command: | - python -m pip install timm - python -m coverage run --branch --source mmseg -m pytest tests/ + python -m coverage run --branch --source mmseg -m pytest tests/ --ignore tests/test_models/test_backbones/test_timm_backbone.py python -m coverage xml python -m coverage report -m @@ -102,7 +100,6 @@ jobs: # python -m pip install mmcv-full -f https://download.openmmlab.com/mmcv/dist/cu101/torch${{matrix.torch_version}}/index.html command: | python -m pip install mmcv-full -f https://download.openmmlab.com/mmcv/dist/cu101/torch1.6.0/index.html - python -m pip install mmdet python -m pip install -r requirements.txt - run: name: Build and install @@ -110,10 +107,9 @@ jobs: python setup.py check -m -s TORCH_CUDA_ARCH_LIST=7.0 python -m pip install -e . - run: - name: Run unittests + name: Run unittests but skip timm unittests command: | - python -m pip install timm - python -m pytest tests/ + python -m pytest tests/ --ignore tests/test_models/test_backbones/test_timm_backbone.py workflows: unit_tests: