Skip to content
Snippets Groups Projects
Commit b07bb163 authored by Miao Zheng's avatar Miao Zheng Committed by MeowZheng
Browse files

[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
parent 580bd38b
No related branches found
No related tags found
No related merge requests found
......@@ -61,7 +61,7 @@ jobs:
command: |
pip install git+https://github.com/open-mmlab/mmengine.git@main
pip install -U openmim
mim install 'mmcv >= 2.0.0rc1'
mim install 'mmcv>=2.0.0rc1'
pip install git+https://github.com/open-mmlab/mmclassification@dev-1.x
pip install -r requirements/tests.txt -r requirements/optional.txt
- run:
......@@ -106,7 +106,7 @@ jobs:
command: |
docker exec mmseg pip install -e /mmengine
docker exec mmseg pip install -U openmim
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 -r requirements/tests.txt -r requirements/optional.txt
- run:
......@@ -128,6 +128,7 @@ workflows:
ignore:
- dev-1.x
- 1.x
- master
pr_stage_test:
when:
not:
......@@ -140,6 +141,7 @@ workflows:
ignore:
- dev-1.x
- 1.x
- master
- build_cpu:
name: minimum_version_cpu
torch: 1.6.0
......@@ -181,3 +183,5 @@ workflows:
branches:
only:
- dev-1.x
- 1.x
- master
name: test-mim
on:
push:
paths:
- 'model-index.yml'
- 'configs/**'
pull_request:
paths:
- 'model-index.yml'
- 'configs/**'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build_cpu:
runs-on: ubuntu-18.04
strategy:
matrix:
python-version: [3.7]
torch: [1.8.0]
include:
- torch: 1.8.0
torch_version: torch1.8
torchvision: 0.9.0
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Upgrade pip
run: pip install pip --upgrade
- name: Install PyTorch
run: pip install torch==${{matrix.torch}}+cpu torchvision==${{matrix.torchvision}}+cpu -f https://download.pytorch.org/whl/torch_stable.html
- name: Install openmim
run: pip install openmim
- name: Build and install
run: rm -rf .eggs && mim install -e .
- name: test commands of mim
run: mim search mmsegmentation>=1.0.0rc0
......@@ -48,7 +48,7 @@ repos:
name: update-model-index
description: Collect model information and update model-index.yml
entry: .dev/md2yml.py
additional_dependencies: [lxml, opencv-python, mmengine]
additional_dependencies: [mmengine, lxml, opencv-python]
language: python
files: ^configs/.*\.md$
require_serial: true
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment