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
571e3e5f
Unverified
Commit
571e3e5f
authored
Jul 28, 2021
by
Zaida Zhou
Committed by
GitHub
Jul 28, 2021
Browse files
[Fix] Fix CI of deploy (#1220)
parent
88d8c9ef
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
6 deletions
+10
-6
.github/workflows/build.yml
.github/workflows/build.yml
+6
-6
.github/workflows/publish-to-pypi.yml
.github/workflows/publish-to-pypi.yml
+4
-0
No files found.
.github/workflows/build.yml
View file @
571e3e5f
...
@@ -42,7 +42,7 @@ jobs:
...
@@ -42,7 +42,7 @@ jobs:
-
name
:
Install system dependencies
-
name
:
Install system dependencies
run
:
sudo apt-get update && sudo apt-get install -y ffmpeg libturbojpeg
run
:
sudo apt-get update && sudo apt-get install -y ffmpeg libturbojpeg
-
name
:
Upgrade Setuptools
-
name
:
Upgrade Setuptools
run
:
pip install setuptools
==52
run
:
pip install setuptools
--upgrade
-
name
:
Build and install
-
name
:
Build and install
run
:
rm -rf .eggs && pip install -e .
run
:
rm -rf .eggs && pip install -e .
-
name
:
Validate the installation
-
name
:
Validate the installation
...
@@ -78,7 +78,7 @@ jobs:
...
@@ -78,7 +78,7 @@ jobs:
-
name
:
Install PyTorch
-
name
:
Install PyTorch
run
:
pip install torch==${{matrix.torch}}+cpu torchvision==${{matrix.torchvision}}+cpu -f https://download.pytorch.org/whl/torch_stable.html
run
:
pip install torch==${{matrix.torch}}+cpu torchvision==${{matrix.torchvision}}+cpu -f https://download.pytorch.org/whl/torch_stable.html
-
name
:
Upgrade Setuptools
-
name
:
Upgrade Setuptools
run
:
pip install setuptools
==52
run
:
pip install setuptools
--upgrade
-
name
:
Build and install
-
name
:
Build and install
run
:
rm -rf .eggs && pip install -e .
run
:
rm -rf .eggs && pip install -e .
-
name
:
Validate the installation
-
name
:
Validate the installation
...
@@ -123,7 +123,7 @@ jobs:
...
@@ -123,7 +123,7 @@ jobs:
-
name
:
Install PyTorch
-
name
:
Install PyTorch
run
:
pip install torch==${{matrix.torch}}+cpu torchvision==${{matrix.torchvision}}+cpu -f https://download.pytorch.org/whl/torch_stable.html
run
:
pip install torch==${{matrix.torch}}+cpu torchvision==${{matrix.torchvision}}+cpu -f https://download.pytorch.org/whl/torch_stable.html
-
name
:
Upgrade Setuptools
-
name
:
Upgrade Setuptools
run
:
pip install setuptools
==52
run
:
pip install setuptools
--upgrade
-
name
:
Build and install
-
name
:
Build and install
run
:
rm -rf .eggs && pip install -e .
run
:
rm -rf .eggs && pip install -e .
-
name
:
Validate the installation
-
name
:
Validate the installation
...
@@ -195,7 +195,7 @@ jobs:
...
@@ -195,7 +195,7 @@ jobs:
-
name
:
Install system dependencies
-
name
:
Install system dependencies
run
:
sudo apt-get update && sudo apt-get install -y ffmpeg libturbojpeg
run
:
sudo apt-get update && sudo apt-get install -y ffmpeg libturbojpeg
-
name
:
Upgrade Setuptools
-
name
:
Upgrade Setuptools
run
:
pip install setuptools
==52
run
:
pip install setuptools
--upgrade
-
name
:
Build and install
-
name
:
Build and install
run
:
rm -rf .eggs && pip install -e .
run
:
rm -rf .eggs && pip install -e .
-
name
:
Validate the installation
-
name
:
Validate the installation
...
@@ -267,7 +267,7 @@ jobs:
...
@@ -267,7 +267,7 @@ jobs:
-
name
:
Install system dependencies
-
name
:
Install system dependencies
run
:
sudo apt-get update && sudo apt-get install -y ffmpeg libturbojpeg
run
:
sudo apt-get update && sudo apt-get install -y ffmpeg libturbojpeg
-
name
:
Upgrade Setuptools
-
name
:
Upgrade Setuptools
run
:
pip install setuptools
==52
run
:
pip install setuptools
--upgrade
-
name
:
Build and install
-
name
:
Build and install
run
:
rm -rf .eggs && pip install -e .
run
:
rm -rf .eggs && pip install -e .
-
name
:
Validate the installation
-
name
:
Validate the installation
...
@@ -321,7 +321,7 @@ jobs:
...
@@ -321,7 +321,7 @@ jobs:
-
name
:
Install PyTorch
-
name
:
Install PyTorch
run
:
pip install torch==${{matrix.torch}} torchvision==${{matrix.torchvision}} --no-cache-dir
run
:
pip install torch==${{matrix.torch}} torchvision==${{matrix.torchvision}} --no-cache-dir
-
name
:
Upgrade Setuptools
-
name
:
Upgrade Setuptools
run
:
pip install setuptools
==52
run
:
pip install setuptools
--upgrade
-
name
:
Build and install
-
name
:
Build and install
run
:
|
run
:
|
rm -rf .eggs
rm -rf .eggs
...
...
.github/workflows/publish-to-pypi.yml
View file @
571e3e5f
...
@@ -12,6 +12,8 @@ jobs:
...
@@ -12,6 +12,8 @@ jobs:
uses
:
actions/setup-python@v1
uses
:
actions/setup-python@v1
with
:
with
:
python-version
:
3.7
python-version
:
3.7
-
name
:
Upgrade Setuptools
run
:
pip install setuptools --upgrade
-
name
:
Build MMCV
-
name
:
Build MMCV
run
:
python setup.py sdist
run
:
python setup.py sdist
-
name
:
Publish distribution to PyPI
-
name
:
Publish distribution to PyPI
...
@@ -28,6 +30,8 @@ jobs:
...
@@ -28,6 +30,8 @@ jobs:
uses
:
actions/setup-python@v1
uses
:
actions/setup-python@v1
with
:
with
:
python-version
:
3.7
python-version
:
3.7
-
name
:
Upgrade Setuptools
run
:
pip install setuptools --upgrade
-
name
:
Build MMCV with ops
-
name
:
Build MMCV with ops
run
:
|
run
:
|
sed -i "s/os.getenv('MMCV_WITH_OPS', '0')/os.getenv('MMCV_WITH_OPS', '1')/g" setup.py
sed -i "s/os.getenv('MMCV_WITH_OPS', '0')/os.getenv('MMCV_WITH_OPS', '1')/g" setup.py
...
...
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