Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
MMCV
Commits
ac470881
Unverified
Commit
ac470881
authored
Nov 22, 2022
by
Zaida Zhou
Committed by
GitHub
Nov 22, 2022
Browse files
Add torch1.13 checking in CI (#2441)
* Add torch1.13 in CI * swith to python3.7 * fix windows error
parent
1ea1b489
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
51 additions
and
11 deletions
+51
-11
.circleci/test.yml
.circleci/test.yml
+2
-2
.github/workflows/build_macos_wheel.yml
.github/workflows/build_macos_wheel.yml
+5
-1
.github/workflows/merge_stage_test.yml
.github/workflows/merge_stage_test.yml
+42
-6
.github/workflows/pr_stage_test.yml
.github/workflows/pr_stage_test.yml
+2
-2
No files found.
.circleci/test.yml
View file @
ac470881
...
...
@@ -236,8 +236,8 @@ workflows:
-
build_without_ops
-
build_cpu
:
name
:
maximum_version_cpu
torch
:
1.1
2.1
torchvision
:
0.1
3.1
torch
:
1.1
3.0
torchvision
:
0.1
4.0
python
:
3.9.0
requires
:
-
minimum_version_cpu
...
...
.github/workflows/build_macos_wheel.yml
View file @
ac470881
...
...
@@ -12,7 +12,7 @@ jobs:
if
:
contains(github.event.head_commit.message, 'Bump version to')
strategy
:
matrix
:
torch
:
[
1.6.0
,
1.7.0
,
1.8.0
,
1.9.0
,
1.10.0
,
1.11.0
,
1.12.0
]
torch
:
[
1.6.0
,
1.7.0
,
1.8.0
,
1.9.0
,
1.10.0
,
1.11.0
,
1.12.0
,
1.13.0
]
python-version
:
[
3.6
,
3.7
,
3.8
,
3.9
,
'
3.10'
]
include
:
-
torch
:
1.6.0
...
...
@@ -29,6 +29,8 @@ jobs:
torchvision
:
0.12.0
-
torch
:
1.12.0
torchvision
:
0.13.0
-
torch
:
1.13.0
torchvision
:
0.14.0
exclude
:
-
torch
:
1.6.0
python-version
:
3.9
...
...
@@ -48,6 +50,8 @@ jobs:
python-version
:
3.6
-
torch
:
1.12.0
python-version
:
3.6
-
torch
:
1.13.0
python-version
:
3.6
steps
:
-
uses
:
actions/checkout@v2
-
name
:
Set up Python
...
...
.github/workflows/merge_stage_test.yml
View file @
ac470881
...
...
@@ -116,7 +116,7 @@ jobs:
strategy
:
matrix
:
python-version
:
[
3.7
]
torch
:
[
1.6.0
,
1.7.1
,
1.8.1
,
1.9.1
,
1.10.1
,
1.11.0
,
1.12.0
]
torch
:
[
1.6.0
,
1.7.1
,
1.8.1
,
1.9.1
,
1.10.1
,
1.11.0
,
1.12.0
,
1.13.0
]
include
:
-
torch
:
1.6.0
torchvision
:
0.7.0
...
...
@@ -132,6 +132,8 @@ jobs:
torchvision
:
0.12.0
-
torch
:
1.12.0
torchvision
:
0.13.0
-
torch
:
1.13.0
torchvision
:
0.14.0
steps
:
-
uses
:
actions/checkout@v2
-
name
:
Set up Python ${{ matrix.python-version }}
...
...
@@ -201,6 +203,40 @@ jobs:
coverage run --branch --source mmcv -m pytest tests/
coverage xml
coverage report -m
build_cu116
:
runs-on
:
ubuntu-18.04
container
:
image
:
pytorch/pytorch:1.13.0-cuda11.6-cudnn8-devel
strategy
:
matrix
:
python-version
:
[
3.7
]
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
:
...
...
@@ -216,7 +252,7 @@ jobs:
with
:
python-version
:
3.7
-
name
:
Upgrade pip
run
:
pip install pip --upgrade
run
:
python -m
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
...
...
@@ -249,7 +285,7 @@ jobs:
with
:
python-version
:
${{ matrix.python-version }}
-
name
:
Upgrade pip
run
:
pip install pip --upgrade
run
:
python -m
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
...
...
@@ -267,14 +303,14 @@ jobs:
strategy
:
matrix
:
python-version
:
[
3.7
]
torch
:
[
1.6.0
,
1.8.1
,
1.1
2
.0
]
torch
:
[
1.6.0
,
1.8.1
,
1.1
3
.0
]
include
:
-
torch
:
1.6.0
torchvision
:
0.7.0
-
torch
:
1.8.1
torchvision
:
0.9.1
-
torch
:
1.1
2
.0
torchvision
:
0.1
3
.0
-
torch
:
1.1
3
.0
torchvision
:
0.1
4
.0
steps
:
-
uses
:
actions/checkout@v2
-
name
:
Set up Python
3.7
...
...
.github/workflows/pr_stage_test.yml
View file @
ac470881
...
...
@@ -110,7 +110,7 @@ jobs:
with
:
python-version
:
3.7
-
name
:
Upgrade pip
run
:
pip install pip --upgrade
run
:
python -m
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
...
...
@@ -137,7 +137,7 @@ jobs:
with
:
python-version
:
${{ matrix.python-version }}
-
name
:
Upgrade pip
run
:
pip install pip --upgrade
run
:
python -m
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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment