diff --git a/.circleci/test.yml b/.circleci/test.yml index b6e6bb1c9..76f9f70d8 100644 --- a/.circleci/test.yml +++ b/.circleci/test.yml @@ -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 diff --git a/.github/workflows/test_mim.yml b/.github/workflows/test_mim.yml new file mode 100644 index 000000000..390fcf87d --- /dev/null +++ b/.github/workflows/test_mim.yml @@ -0,0 +1,45 @@ + +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 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index bc3ce18a4..34b120968 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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