[CI] Update ci image (#2801)

## Motivation

https://github.com/actions/runner-images/issues/6002
This commit is contained in:
谢昕辰 2023-04-06 11:12:14 +08:00 committed by GitHub
parent 225e1582a8
commit 413f12066e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 71 additions and 78 deletions

View File

@ -26,7 +26,7 @@ workflows:
tools/.* lint_only false tools/.* lint_only false
configs/.* lint_only false configs/.* lint_only false
.circleci/.* lint_only false .circleci/.* lint_only false
base-revision: dev-1.x base-revision: main
# this is the path of the configuration we should trigger once # this is the path of the configuration we should trigger once
# path filtering and pipeline parameter value updates are # path filtering and pipeline parameter value updates are
# complete. In this case, we are using the parent dynamic # complete. In this case, we are using the parent dynamic

View File

@ -130,8 +130,7 @@ workflows:
branches: branches:
ignore: ignore:
- dev-1.x - dev-1.x
- 1.x - main
- master
pr_stage_test: pr_stage_test:
when: when:
not: not:
@ -143,8 +142,7 @@ workflows:
branches: branches:
ignore: ignore:
- dev-1.x - dev-1.x
- 1.x - main
- master
- build_cpu: - build_cpu:
name: minimum_version_cpu name: minimum_version_cpu
torch: 1.6.0 torch: 1.6.0
@ -187,4 +185,4 @@ workflows:
branches: branches:
only: only:
- dev-1.x - dev-1.x
- 1.x - main

View File

@ -8,12 +8,12 @@ concurrency:
jobs: jobs:
build-n-publish: build-n-publish:
runs-on: ubuntu-latest runs-on: ubuntu-22.04
if: startsWith(github.event.ref, 'refs/tags') if: startsWith(github.event.ref, 'refs/tags')
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- name: Set up Python 3.7 - name: Set up Python 3.7
uses: actions/setup-python@v2 uses: actions/setup-python@v4
with: with:
python-version: 3.7 python-version: 3.7
- name: Build MMSegmentation - name: Build MMSegmentation

View File

@ -8,11 +8,11 @@ concurrency:
jobs: jobs:
lint: lint:
runs-on: ubuntu-18.04 runs-on: ubuntu-22.04
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- name: Set up Python 3.7 - name: Set up Python 3.7
uses: actions/setup-python@v2 uses: actions/setup-python@v4
with: with:
python-version: 3.7 python-version: 3.7
- name: Install pre-commit hook - name: Install pre-commit hook

View File

@ -19,7 +19,7 @@ concurrency:
jobs: jobs:
build_cpu_py: build_cpu_py:
runs-on: ubuntu-18.04 runs-on: ubuntu-22.04
strategy: strategy:
matrix: matrix:
python-version: [3.8, 3.9] python-version: [3.8, 3.9]
@ -28,9 +28,9 @@ jobs:
- torch: 1.8.1 - torch: 1.8.1
torchvision: 0.9.1 torchvision: 0.9.1
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }} - name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2 uses: actions/setup-python@v4
with: with:
python-version: ${{ matrix.python-version }} python-version: ${{ matrix.python-version }}
- name: Upgrade pip - name: Upgrade pip
@ -58,7 +58,7 @@ jobs:
coverage xml coverage xml
coverage report -m coverage report -m
build_cpu_pt: build_cpu_pt:
runs-on: ubuntu-18.04 runs-on: ubuntu-22.04
strategy: strategy:
matrix: matrix:
python-version: [3.7] python-version: [3.7]
@ -82,9 +82,9 @@ jobs:
# - torch: 1.13.0 # - torch: 1.13.0
# torchvision: 0.14.0 # torchvision: 0.14.0
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }} - name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2 uses: actions/setup-python@v4
with: with:
python-version: ${{ matrix.python-version }} python-version: ${{ matrix.python-version }}
- name: Upgrade pip - name: Upgrade pip
@ -133,9 +133,11 @@ jobs:
fail_ci_if_error: false fail_ci_if_error: false
build_cu102: build_cu102:
runs-on: ubuntu-18.04 runs-on: ubuntu-22.04
container: container:
image: pytorch/pytorch:1.8.1-cuda10.2-cudnn7-devel image: pytorch/pytorch:1.8.1-cuda10.2-cudnn7-devel
env:
MKL_THREADING_LAYER: GNU
strategy: strategy:
matrix: matrix:
python-version: [3.7] python-version: [3.7]
@ -143,9 +145,9 @@ jobs:
- torch: 1.8.1 - torch: 1.8.1
cuda: 10.2 cuda: 10.2
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }} - name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2 uses: actions/setup-python@v4
with: with:
python-version: ${{ matrix.python-version }} python-version: ${{ matrix.python-version }}
- name: Upgrade pip - name: Upgrade pip
@ -156,8 +158,6 @@ jobs:
run: | run: |
apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/3bf863cc.pub apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/3bf863cc.pub
apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1804/x86_64/7fa2af80.pub apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1804/x86_64/7fa2af80.pub
- name: Install Python-dev
run: apt-get update && apt-get install -y python${{matrix.python-version}}-dev
- name: Install system dependencies - name: Install system dependencies
run: | run: |
apt-get update && apt-get install -y ffmpeg libsm6 libxext6 git ninja-build libglib2.0-0 libsm6 libxrender-dev libxext6 apt-get update && apt-get install -y ffmpeg libsm6 libxext6 git ninja-build libglib2.0-0 libsm6 libxrender-dev libxext6
@ -176,7 +176,7 @@ jobs:
python setup.py check -m -s python setup.py check -m -s
TORCH_CUDA_ARCH_LIST=7.0 pip install -e . TORCH_CUDA_ARCH_LIST=7.0 pip install -e .
build_cu116: build_cu116:
runs-on: ubuntu-18.04 runs-on: ubuntu-22.04
container: container:
image: pytorch/pytorch:1.13.0-cuda11.6-cudnn8-devel image: pytorch/pytorch:1.13.0-cuda11.6-cudnn8-devel
strategy: strategy:
@ -186,9 +186,9 @@ jobs:
- torch: 1.13.0 - torch: 1.13.0
cuda: 11.6 cuda: 11.6
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }} - name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2 uses: actions/setup-python@v4
with: with:
python-version: ${{ matrix.python-version }} python-version: ${{ matrix.python-version }}
- name: Upgrade pip - name: Upgrade pip
@ -226,9 +226,9 @@ jobs:
python: [3.7] python: [3.7]
platform: [cpu, cu111] platform: [cpu, cu111]
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }} - name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2 uses: actions/setup-python@v4
with: with:
python-version: ${{ matrix.python-version }} python-version: ${{ matrix.python-version }}
- name: Upgrade pip - name: Upgrade pip

View File

@ -17,7 +17,7 @@ concurrency:
jobs: jobs:
build_cpu: build_cpu:
runs-on: ubuntu-18.04 runs-on: ubuntu-22.04
strategy: strategy:
matrix: matrix:
python-version: [3.7] python-version: [3.7]
@ -25,9 +25,9 @@ jobs:
- torch: 1.8.1 - torch: 1.8.1
torchvision: 0.9.1 torchvision: 0.9.1
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }} - name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2 uses: actions/setup-python@v4
with: with:
python-version: ${{ matrix.python-version }} python-version: ${{ matrix.python-version }}
- name: Upgrade pip - name: Upgrade pip
@ -67,48 +67,43 @@ jobs:
name: codecov-umbrella name: codecov-umbrella
fail_ci_if_error: false fail_ci_if_error: false
build_cu102: # build_cu102:
runs-on: ubuntu-18.04 # runs-on: ubuntu-22.04
container: # container:
image: pytorch/pytorch:1.8.1-cuda10.2-cudnn7-devel # image: pytorch/pytorch:1.8.1-cuda10.2-cudnn7-devel
strategy: # env:
matrix: # MKL_THREADING_LAYER: GNU
python-version: [3.7] # strategy:
steps: # matrix:
- uses: actions/checkout@v2 # python-version: [3.7]
- name: Set up Python ${{ matrix.python-version }} # steps:
uses: actions/setup-python@v2 # - uses: actions/checkout@v3
with: # - name: Set up Python ${{ matrix.python-version }}
python-version: ${{ matrix.python-version }} # uses: actions/setup-python@v4
- name: Upgrade pip # with:
run: | # python-version: ${{ matrix.python-version }}
pip install pip --upgrade # - name: Upgrade pip
pip install wheel # run: pip install pip --upgrade
- name: Fetch GPG keys # - name: Fetch GPG keys
run: | # run: |
apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/3bf863cc.pub # apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/3bf863cc.pub
apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1804/x86_64/7fa2af80.pub # apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1804/x86_64/7fa2af80.pub
- name: Install Python-dev # - name: Install system dependencies
run: apt-get update && apt-get install -y python${{matrix.python-version}}-dev # run: apt-get update && apt-get install -y ffmpeg libsm6 libxext6 git ninja-build libglib2.0-0 libxrender-dev libxext6
if: ${{matrix.python-version != 3.9}} # - name: Install mmseg dependencies
- name: Install system dependencies # run: |
run: | # python -V
apt-get update # pip install -U openmim
apt-get install -y ffmpeg libsm6 libxext6 git ninja-build libglib2.0-0 libxrender-dev # pip install git+https://github.com/open-mmlab/mmengine.git
- name: Install mmseg dependencies # mim install 'mmcv>=2.0.0rc4'
run: | # pip install git+https://github.com/open-mmlab/mmclassification.git@dev-1.x
python -V # pip install git+https://github.com/open-mmlab/mmdetection.git@dev-3.x
pip install -U openmim # - name: Install unittest dependencies
pip install git+https://github.com/open-mmlab/mmengine.git # run: pip install -r requirements/tests.txt -r requirements/optional.txt
mim install 'mmcv>=2.0.0rc4' # - name: Build and install
pip install git+https://github.com/open-mmlab/mmclassification.git@dev-1.x # run: |
pip install git+https://github.com/open-mmlab/mmdetection.git@dev-3.x # python setup.py check -m -s
- name: Install unittest dependencies # TORCH_CUDA_ARCH_LIST=7.0 pip install -e .
run: pip install -r requirements/tests.txt -r requirements/optional.txt
- name: Build and install
run: |
python setup.py check -m -s
TORCH_CUDA_ARCH_LIST=7.0 pip install -e .
build_windows: build_windows:
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
strategy: strategy:
@ -117,9 +112,9 @@ jobs:
python: [3.7] python: [3.7]
platform: [cpu, cu111] platform: [cpu, cu111]
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }} - name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2 uses: actions/setup-python@v4
with: with:
python-version: ${{ matrix.python-version }} python-version: ${{ matrix.python-version }}
- name: Upgrade pip - name: Upgrade pip

View File

@ -18,7 +18,7 @@ concurrency:
jobs: jobs:
build_cpu: build_cpu:
runs-on: ubuntu-18.04 runs-on: ubuntu-22.04
strategy: strategy:
matrix: matrix:
python-version: [3.7] python-version: [3.7]
@ -28,9 +28,9 @@ jobs:
torch_version: torch1.8 torch_version: torch1.8
torchvision: 0.9.0 torchvision: 0.9.0
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }} - name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2 uses: actions/setup-python@v4
with: with:
python-version: ${{ matrix.python-version }} python-version: ${{ matrix.python-version }}
- name: Upgrade pip - name: Upgrade pip