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
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

View File

@ -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: |

View File

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

View File

@ -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