Skip to content

Commit

Permalink
comment config
Browse files Browse the repository at this point in the history
  • Loading branch information
zhouzaida committed Oct 23, 2022
1 parent 80527de commit eb4459d
Show file tree
Hide file tree
Showing 2 changed files with 178 additions and 178 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build_macos_wheel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,9 @@ jobs:
- torch: 1.12.0
python-version: 3.6
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install psutil
Expand Down
352 changes: 176 additions & 176 deletions .github/workflows/pr_stage_test.yml
Original file line number Diff line number Diff line change
@@ -1,179 +1,179 @@
name: pr_stage_test
# name: pr_stage_test

on:
pull_request:
paths-ignore:
- ".github/**.md"
- "docker/**"
- "docs/**"
- 'examples/**'
- '.dev_scripts/**'
- "README.md"
- "README_zh-CN.md"
- "CONTRIBUTING.md"
- ".pre-commit-config.yaml"
- ".pre-commit-config-zh-cn.yaml"
# on:
# pull_request:
# paths-ignore:
# - ".github/**.md"
# - "docker/**"
# - "docs/**"
# - 'examples/**'
# - '.dev_scripts/**'
# - "README.md"
# - "README_zh-CN.md"
# - "CONTRIBUTING.md"
# - ".pre-commit-config.yaml"
# - ".pre-commit-config-zh-cn.yaml"

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
# concurrency:
# group: ${{ github.workflow }}-${{ github.ref }}
# cancel-in-progress: true

jobs:
build_cpu:
runs-on: ubuntu-18.04
strategy:
matrix:
python-version: [3.7]
include:
- torch: 1.8.1
torchvision: 0.9.1
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install system dependencies
run: sudo apt-get update && sudo apt-get install -y ffmpeg libturbojpeg
- 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 MMEngine from main branch
run: pip install git+https://github.com/open-mmlab/mmengine.git@main
- name: Install ninja to speed the compilation
run: pip install ninja
- name: Build MMCV from source
run: pip install -e . -v
- name: Install unit tests dependencies
run: pip install -r requirements/test.txt
- name: Run unittests and generate coverage report
run: |
coverage run --branch --source mmcv -m pytest tests/
coverage xml
coverage report -m
# Upload coverage report for python3.7 && pytorch1.8.1 cpu
- name: Upload coverage to Codecov
uses: codecov/[email protected]
with:
file: ./coverage.xml
flags: unittests
env_vars: OS,PYTHON
name: codecov-umbrella
fail_ci_if_error: false
build_cu102:
runs-on: ubuntu-18.04
container:
image: pytorch/pytorch:1.8.1-cuda10.2-cudnn7-devel
strategy:
matrix:
python-version: [3.8]
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: Fetch GPG keys
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/machine-learning/repos/ubuntu1804/x86_64/7fa2af80.pub
- name: Install system dependencies
run: apt-get update && apt-get install -y git ffmpeg libturbojpeg
- name: Install MMEngine from main branch
run: pip install git+https://github.com/open-mmlab/mmengine.git@main
- name: Install ninja to speed the compilation
run: pip install ninja
- name: Build MMCV from source
run: pip install -e . -v
- name: Install unit tests dependencies
run: pip install -r requirements/test.txt
- name: Run unittests and generate coverage report
run: |
coverage run --branch --source mmcv -m pytest tests/
coverage xml
coverage report -m
build_windows_without_ops:
runs-on: ${{ matrix.os }}
env:
MMCV_WITH_OPS: 0
strategy:
matrix:
os: [windows-2022]
python-version: [3.7]
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.7
uses: actions/setup-python@v2
with:
python-version: 3.7
- name: Upgrade pip
run: pip install pip --upgrade
- name: Install PyTorch
run: pip install torch==1.8.1+cpu torchvision==0.9.1+cpu -f https://download.pytorch.org/whl/torch_stable.html
- name: Install MMEngine from main branch
run: pip install git+https://github.com/open-mmlab/mmengine.git@main
- name: Install ninja to speed the compilation
run: pip install ninja
- name: Build MMCV from source
run: pip install -e .
- name: Install unit tests dependencies
run: pip install -r requirements/test.txt
- name: Run unittests
run: pytest tests --ignore=tests/test_ops --ignore tests/test_image/test_io.py
build_windows:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-2022]
python: [3.7]
platform: [cpu, cu111]
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==1.8.1+${{matrix.platform}} torchvision==0.9.1+${{matrix.platform}} -f https://download.pytorch.org/whl/lts/1.8/torch_lts.html
- name: Install MMEngine from main branch
run: pip install git+https://github.com/open-mmlab/mmengine.git@main
- name: Install ninja to speed the compilation
run: pip install ninja
- name: Build MMCV from source
run: pip install -e .
- name: Install unit tests dependencies
run: pip install -r requirements/test.txt
- name: Run unittests
run: pytest tests/ --ignore tests/test_image/test_io.py
build_macos:
runs-on: macos-latest
strategy:
matrix:
python-version: [3.7]
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.7
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install system dependencies
run: brew install ffmpeg jpeg-turbo
- name: Upgrade pip
run: pip install pip --upgrade
- name: Install PyTorch
run: pip install torch==1.8.1 torchvision==0.9.1
- name: Install MMEngine from main branch
run: pip install git+https://github.com/open-mmlab/mmengine.git@main
- name: Install ninja to speed the compilation
run: pip install ninja
- name: Build MMCV from source
run: pip install -e . -v
- name: Install unit tests dependencies
run: pip install -r requirements/test.txt
- name: Run unittests
run: pytest tests/
# jobs:
# build_cpu:
# runs-on: ubuntu-18.04
# strategy:
# matrix:
# python-version: [3.7]
# include:
# - torch: 1.8.1
# torchvision: 0.9.1
# steps:
# - uses: actions/checkout@v2
# - name: Set up Python ${{ matrix.python-version }}
# uses: actions/setup-python@v2
# with:
# python-version: ${{ matrix.python-version }}
# - name: Install system dependencies
# run: sudo apt-get update && sudo apt-get install -y ffmpeg libturbojpeg
# - 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 MMEngine from main branch
# run: pip install git+https://github.com/open-mmlab/mmengine.git@main
# - name: Install ninja to speed the compilation
# run: pip install ninja
# - name: Build MMCV from source
# run: pip install -e . -v
# - name: Install unit tests dependencies
# run: pip install -r requirements/test.txt
# - name: Run unittests and generate coverage report
# run: |
# coverage run --branch --source mmcv -m pytest tests/
# coverage xml
# coverage report -m
# # Upload coverage report for python3.7 && pytorch1.8.1 cpu
# - name: Upload coverage to Codecov
# uses: codecov/[email protected]
# with:
# file: ./coverage.xml
# flags: unittests
# env_vars: OS,PYTHON
# name: codecov-umbrella
# fail_ci_if_error: false
# build_cu102:
# runs-on: ubuntu-18.04
# container:
# image: pytorch/pytorch:1.8.1-cuda10.2-cudnn7-devel
# strategy:
# matrix:
# python-version: [3.8]
# 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: Fetch GPG keys
# 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/machine-learning/repos/ubuntu1804/x86_64/7fa2af80.pub
# - name: Install system dependencies
# run: apt-get update && apt-get install -y git ffmpeg libturbojpeg
# - name: Install MMEngine from main branch
# run: pip install git+https://github.com/open-mmlab/mmengine.git@main
# - name: Install ninja to speed the compilation
# run: pip install ninja
# - name: Build MMCV from source
# run: pip install -e . -v
# - name: Install unit tests dependencies
# run: pip install -r requirements/test.txt
# - name: Run unittests and generate coverage report
# run: |
# coverage run --branch --source mmcv -m pytest tests/
# coverage xml
# coverage report -m
# build_windows_without_ops:
# runs-on: ${{ matrix.os }}
# env:
# MMCV_WITH_OPS: 0
# strategy:
# matrix:
# os: [windows-2022]
# python-version: [3.7]
# steps:
# - uses: actions/checkout@v2
# - name: Set up Python 3.7
# uses: actions/setup-python@v2
# with:
# python-version: 3.7
# - name: Upgrade pip
# run: pip install pip --upgrade
# - name: Install PyTorch
# run: pip install torch==1.8.1+cpu torchvision==0.9.1+cpu -f https://download.pytorch.org/whl/torch_stable.html
# - name: Install MMEngine from main branch
# run: pip install git+https://github.com/open-mmlab/mmengine.git@main
# - name: Install ninja to speed the compilation
# run: pip install ninja
# - name: Build MMCV from source
# run: pip install -e .
# - name: Install unit tests dependencies
# run: pip install -r requirements/test.txt
# - name: Run unittests
# run: pytest tests --ignore=tests/test_ops --ignore tests/test_image/test_io.py
# build_windows:
# runs-on: ${{ matrix.os }}
# strategy:
# matrix:
# os: [windows-2022]
# python: [3.7]
# platform: [cpu, cu111]
# 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==1.8.1+${{matrix.platform}} torchvision==0.9.1+${{matrix.platform}} -f https://download.pytorch.org/whl/lts/1.8/torch_lts.html
# - name: Install MMEngine from main branch
# run: pip install git+https://github.com/open-mmlab/mmengine.git@main
# - name: Install ninja to speed the compilation
# run: pip install ninja
# - name: Build MMCV from source
# run: pip install -e .
# - name: Install unit tests dependencies
# run: pip install -r requirements/test.txt
# - name: Run unittests
# run: pytest tests/ --ignore tests/test_image/test_io.py
# build_macos:
# runs-on: macos-latest
# strategy:
# matrix:
# python-version: [3.7]
# steps:
# - uses: actions/checkout@v2
# - name: Set up Python 3.7
# uses: actions/setup-python@v2
# with:
# python-version: ${{ matrix.python-version }}
# - name: Install system dependencies
# run: brew install ffmpeg jpeg-turbo
# - name: Upgrade pip
# run: pip install pip --upgrade
# - name: Install PyTorch
# run: pip install torch==1.8.1 torchvision==0.9.1
# - name: Install MMEngine from main branch
# run: pip install git+https://github.com/open-mmlab/mmengine.git@main
# - name: Install ninja to speed the compilation
# run: pip install ninja
# - name: Build MMCV from source
# run: pip install -e . -v
# - name: Install unit tests dependencies
# run: pip install -r requirements/test.txt
# - name: Run unittests
# run: pytest tests/

0 comments on commit eb4459d

Please sign in to comment.