Skip to content

Commit b07bb16

Browse files
committed
[Enhancement] Fix ci for 1.x (#2011)
* [Enhancement] Fix ci for 1.x * circle ci * lint and engien * typo * typo * mim install mmcv * python -m pip * python -m pip * python -m pip * remove pt1.5 * remove pt1.5 * ignore high memory in win * fix win and lint * fix lint * fix lint * fix lint * win * win
1 parent 580bd38 commit b07bb16

File tree

3 files changed

+52
-3
lines changed

3 files changed

+52
-3
lines changed

.circleci/test.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ jobs:
6161
command: |
6262
pip install git+https://github.com/open-mmlab/mmengine.git@main
6363
pip install -U openmim
64-
mim install 'mmcv >= 2.0.0rc1'
64+
mim install 'mmcv>=2.0.0rc1'
6565
pip install git+https://github.com/open-mmlab/[email protected]
6666
pip install -r requirements/tests.txt -r requirements/optional.txt
6767
- run:
@@ -106,7 +106,7 @@ jobs:
106106
command: |
107107
docker exec mmseg pip install -e /mmengine
108108
docker exec mmseg pip install -U openmim
109-
docker exec mmseg mim install 'mmcv >= 2.0.0rc1'
109+
docker exec mmseg mim install 'mmcv>=2.0.0rc1'
110110
docker exec mmseg pip install -e /mmclassification
111111
docker exec mmseg pip install -r requirements/tests.txt -r requirements/optional.txt
112112
- run:
@@ -128,6 +128,7 @@ workflows:
128128
ignore:
129129
- dev-1.x
130130
- 1.x
131+
- master
131132
pr_stage_test:
132133
when:
133134
not:
@@ -140,6 +141,7 @@ workflows:
140141
ignore:
141142
- dev-1.x
142143
- 1.x
144+
- master
143145
- build_cpu:
144146
name: minimum_version_cpu
145147
torch: 1.6.0
@@ -181,3 +183,5 @@ workflows:
181183
branches:
182184
only:
183185
- dev-1.x
186+
- 1.x
187+
- master

.github/workflows/test_mim.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
2+
name: test-mim
3+
4+
on:
5+
push:
6+
paths:
7+
- 'model-index.yml'
8+
- 'configs/**'
9+
10+
pull_request:
11+
paths:
12+
- 'model-index.yml'
13+
- 'configs/**'
14+
15+
concurrency:
16+
group: ${{ github.workflow }}-${{ github.ref }}
17+
cancel-in-progress: true
18+
19+
jobs:
20+
build_cpu:
21+
runs-on: ubuntu-18.04
22+
strategy:
23+
matrix:
24+
python-version: [3.7]
25+
torch: [1.8.0]
26+
include:
27+
- torch: 1.8.0
28+
torch_version: torch1.8
29+
torchvision: 0.9.0
30+
steps:
31+
- uses: actions/checkout@v2
32+
- name: Set up Python ${{ matrix.python-version }}
33+
uses: actions/setup-python@v2
34+
with:
35+
python-version: ${{ matrix.python-version }}
36+
- name: Upgrade pip
37+
run: pip install pip --upgrade
38+
- name: Install PyTorch
39+
run: pip install torch==${{matrix.torch}}+cpu torchvision==${{matrix.torchvision}}+cpu -f https://download.pytorch.org/whl/torch_stable.html
40+
- name: Install openmim
41+
run: pip install openmim
42+
- name: Build and install
43+
run: rm -rf .eggs && mim install -e .
44+
- name: test commands of mim
45+
run: mim search mmsegmentation>=1.0.0rc0

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ repos:
4848
name: update-model-index
4949
description: Collect model information and update model-index.yml
5050
entry: .dev/md2yml.py
51-
additional_dependencies: [lxml, opencv-python, mmengine]
51+
additional_dependencies: [mmengine, lxml, opencv-python]
5252
language: python
5353
files: ^configs/.*\.md$
5454
require_serial: true

0 commit comments

Comments
 (0)