update requiments

pull/1/head
zhangshilong 2021-05-17 13:01:07 +08:00
parent 3a51fd9bb5
commit 3e174921ad
4 changed files with 9 additions and 5 deletions

View File

@ -20,7 +20,7 @@ jobs:
- name: Check docstring coverage - name: Check docstring coverage
run: | run: |
pip install interrogate 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: build_cpu:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@ -65,7 +65,7 @@ jobs:
run: rm -rf .eggs && pip install -e . run: rm -rf .eggs && pip install -e .
- name: Run unittests and generate coverage report - name: Run unittests and generate coverage report
run: | run: |
coverage run --branch --source mmdet -m pytest tests/ coverage run --branch --source mmfewshot -m pytest tests/
coverage xml coverage xml
coverage report -m coverage report -m
@ -136,7 +136,7 @@ jobs:
if: ${{matrix.torchvision < 0.5}} if: ${{matrix.torchvision < 0.5}}
- name: Install PyTorch - name: Install PyTorch
run: pip install torch==${{matrix.torch}} torchvision==${{matrix.torchvision}} -f https://download.pytorch.org/whl/torch_stable.html 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: | run: |
pip install mmcv-full -f https://download.openmmlab.com/mmcv/dist/cu101/${{matrix.torch_version}}/index.html pip install mmcv-full -f https://download.openmmlab.com/mmcv/dist/cu101/${{matrix.torch_version}}/index.html
pip install -r requirements.txt pip install -r requirements.txt
@ -148,7 +148,7 @@ jobs:
TORCH_CUDA_ARCH_LIST=7.0 pip install . TORCH_CUDA_ARCH_LIST=7.0 pip install .
- name: Run unittests and generate coverage report - name: Run unittests and generate coverage report
run: | run: |
coverage run --branch --source mmdet -m pytest tests/ coverage run --branch --source mmfewshot -m pytest tests/
coverage xml coverage xml
coverage report -m coverage report -m
- name: Upload coverage to Codecov - name: Upload coverage to Codecov

View File

@ -16,7 +16,7 @@ jobs:
run: pip install torch run: pip install torch
- name: Install wheel - name: Install wheel
run: pip install wheel run: pip install wheel
- name: Build MMDetection - name: Build MMFewShot
run: python setup.py sdist bdist_wheel run: python setup.py sdist bdist_wheel
- name: Publish distribution to PyPI - name: Publish distribution to PyPI
run: | run: |

View File

@ -1,4 +1,6 @@
matplotlib matplotlib
mmcls
mmdet
numpy numpy
pycocotools; platform_system == "Linux" pycocotools; platform_system == "Linux"
pycocotools-windows; platform_system == "Windows" pycocotools-windows; platform_system == "Windows"

View File

@ -5,6 +5,8 @@ interrogate
isort==4.3.21 isort==4.3.21
# Note: used for kwarray.group_items, this may be ported to mmcv in the future. # Note: used for kwarray.group_items, this may be ported to mmcv in the future.
kwarray kwarray
mmcls
mmdet
pytest pytest
ubelt ubelt
xdoctest>=0.10.0 xdoctest>=0.10.0