From 3e174921ad8e00ad83275db954a6670e64a46408 Mon Sep 17 00:00:00 2001 From: zhangshilong Date: Mon, 17 May 2021 13:01:07 +0800 Subject: [PATCH] update requiments --- .github/workflows/build.yml | 8 ++++---- .github/workflows/deploy.yml | 2 +- requirements/runtime.txt | 2 ++ requirements/tests.txt | 2 ++ 4 files changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0d56d62..472ded6 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -20,7 +20,7 @@ jobs: - name: Check docstring coverage run: | pip install interrogate - interrogate -v --ignore-init-method --ignore-module --ignore-nested-functions --ignore-regex "__repr__" --fail-under 80 mmdet + interrogate -v --ignore-init-method --ignore-module --ignore-nested-functions --ignore-regex "__repr__" --fail-under 80 mmfewshot build_cpu: runs-on: ubuntu-latest @@ -65,7 +65,7 @@ jobs: run: rm -rf .eggs && pip install -e . - name: Run unittests and generate coverage report run: | - coverage run --branch --source mmdet -m pytest tests/ + coverage run --branch --source mmfewshot -m pytest tests/ coverage xml coverage report -m @@ -136,7 +136,7 @@ jobs: if: ${{matrix.torchvision < 0.5}} - name: Install PyTorch run: pip install torch==${{matrix.torch}} torchvision==${{matrix.torchvision}} -f https://download.pytorch.org/whl/torch_stable.html - - name: Install mmdet dependencies + - name: Install mmfewshot dependencies run: | pip install mmcv-full -f https://download.openmmlab.com/mmcv/dist/cu101/${{matrix.torch_version}}/index.html pip install -r requirements.txt @@ -148,7 +148,7 @@ jobs: TORCH_CUDA_ARCH_LIST=7.0 pip install . - name: Run unittests and generate coverage report run: | - coverage run --branch --source mmdet -m pytest tests/ + coverage run --branch --source mmfewshot -m pytest tests/ coverage xml coverage report -m - name: Upload coverage to Codecov diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 2f9458b..a6bebf5 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -16,7 +16,7 @@ jobs: run: pip install torch - name: Install wheel run: pip install wheel - - name: Build MMDetection + - name: Build MMFewShot run: python setup.py sdist bdist_wheel - name: Publish distribution to PyPI run: | diff --git a/requirements/runtime.txt b/requirements/runtime.txt index 17efe68..ccd1472 100644 --- a/requirements/runtime.txt +++ b/requirements/runtime.txt @@ -1,4 +1,6 @@ matplotlib +mmcls +mmdet numpy pycocotools; platform_system == "Linux" pycocotools-windows; platform_system == "Windows" diff --git a/requirements/tests.txt b/requirements/tests.txt index 974d415..433b2f8 100644 --- a/requirements/tests.txt +++ b/requirements/tests.txt @@ -5,6 +5,8 @@ interrogate isort==4.3.21 # Note: used for kwarray.group_items, this may be ported to mmcv in the future. kwarray +mmcls +mmdet pytest ubelt xdoctest>=0.10.0