mirror of
https://github.com/open-mmlab/mmsegmentation.git
synced 2025-06-03 22:03:48 +08:00
[Fix] circle ci (#2019)
* [Fix] circle ci * importlib * python -m mim * python -m cpverage * typo
This commit is contained in:
parent
cf1577c9c3
commit
6cdc2c4a8a
@ -36,8 +36,6 @@ jobs:
|
|||||||
type: string
|
type: string
|
||||||
torchvision:
|
torchvision:
|
||||||
type: string
|
type: string
|
||||||
mmcv:
|
|
||||||
type: string
|
|
||||||
docker:
|
docker:
|
||||||
- image: cimg/python:<< parameters.python >>
|
- image: cimg/python:<< parameters.python >>
|
||||||
resource_class: large
|
resource_class: large
|
||||||
@ -62,10 +60,10 @@ jobs:
|
|||||||
name: Install mmseg dependencies
|
name: Install mmseg dependencies
|
||||||
command: |
|
command: |
|
||||||
python -m pip install git+https://github.com/open-mmlab/mmengine.git@main
|
python -m pip install git+https://github.com/open-mmlab/mmengine.git@main
|
||||||
python -m pip install -U openmim
|
python -m pip install -U openmim 'importlib-metadata<2'
|
||||||
mim install 'mmcv>=2.0.0rc1'
|
python -m mim install 'mmcv>=2.0.0rc1'
|
||||||
python -m pip install git+https://github.com/open-mmlab/mmclassification.git@dev-1.x
|
python -m pip install git+https://github.com/open-mmlab/mmclassification.git@dev-1.x
|
||||||
python -m pip install -r requirements.txt
|
python -m pip install -r requirements/tests.txt -r requirements/optional.txt
|
||||||
- run:
|
- run:
|
||||||
name: Build and install
|
name: Build and install
|
||||||
command: |
|
command: |
|
||||||
@ -80,9 +78,9 @@ jobs:
|
|||||||
- run:
|
- run:
|
||||||
name: Skip timm unittests and generate coverage report
|
name: Skip timm unittests and generate coverage report
|
||||||
command: |
|
command: |
|
||||||
coverage run --branch --source mmseg -m pytest tests/ --ignore tests/test_models/test_backbones/test_timm_backbone.py
|
python -m coverage run --branch --source mmseg -m pytest tests/ --ignore tests/test_models/test_backbones/test_timm_backbone.py
|
||||||
coverage xml
|
python -m coverage xml
|
||||||
coverage report -m
|
python -m coverage report -m
|
||||||
build_cuda:
|
build_cuda:
|
||||||
parameters:
|
parameters:
|
||||||
torch:
|
torch:
|
||||||
@ -93,8 +91,6 @@ jobs:
|
|||||||
cudnn:
|
cudnn:
|
||||||
type: integer
|
type: integer
|
||||||
default: 7
|
default: 7
|
||||||
mmcv:
|
|
||||||
type: string
|
|
||||||
machine:
|
machine:
|
||||||
image: ubuntu-2004-cuda-11.4:202110-01
|
image: ubuntu-2004-cuda-11.4:202110-01
|
||||||
# docker_layer_caching: true
|
# docker_layer_caching: true
|
||||||
@ -116,7 +112,7 @@ jobs:
|
|||||||
name: Install mmseg dependencies
|
name: Install mmseg dependencies
|
||||||
command: |
|
command: |
|
||||||
docker exec mmseg pip install -e /mmengine
|
docker exec mmseg pip install -e /mmengine
|
||||||
docker exec mmseg pip install -U openmim
|
docker exec mmseg pip install -U openmim 'importlib-metadata<2'
|
||||||
docker exec mmseg mim install 'mmcv>=2.0.0rc1'
|
docker exec mmseg mim install 'mmcv>=2.0.0rc1'
|
||||||
docker exec mmseg pip install -e /mmclassification
|
docker exec mmseg pip install -e /mmclassification
|
||||||
docker exec mmseg python -m pip install -r requirements.txt
|
docker exec mmseg python -m pip install -r requirements.txt
|
||||||
|
Loading…
x
Reference in New Issue
Block a user