Unverified Commit 571e3e5f authored by Zaida Zhou's avatar Zaida Zhou Committed by GitHub
Browse files

[Fix] Fix CI of deploy (#1220)

parent 88d8c9ef
......@@ -42,7 +42,7 @@ jobs:
- name: Install system dependencies
run: sudo apt-get update && sudo apt-get install -y ffmpeg libturbojpeg
- name: Upgrade Setuptools
run: pip install setuptools==52
run: pip install setuptools --upgrade
- name: Build and install
run: rm -rf .eggs && pip install -e .
- name: Validate the installation
......@@ -78,7 +78,7 @@ jobs:
- name: Install PyTorch
run: pip install torch==${{matrix.torch}}+cpu torchvision==${{matrix.torchvision}}+cpu -f https://download.pytorch.org/whl/torch_stable.html
- name: Upgrade Setuptools
run: pip install setuptools==52
run: pip install setuptools --upgrade
- name: Build and install
run: rm -rf .eggs && pip install -e .
- name: Validate the installation
......@@ -123,7 +123,7 @@ jobs:
- name: Install PyTorch
run: pip install torch==${{matrix.torch}}+cpu torchvision==${{matrix.torchvision}}+cpu -f https://download.pytorch.org/whl/torch_stable.html
- name: Upgrade Setuptools
run: pip install setuptools==52
run: pip install setuptools --upgrade
- name: Build and install
run: rm -rf .eggs && pip install -e .
- name: Validate the installation
......@@ -195,7 +195,7 @@ jobs:
- name: Install system dependencies
run: sudo apt-get update && sudo apt-get install -y ffmpeg libturbojpeg
- name: Upgrade Setuptools
run: pip install setuptools==52
run: pip install setuptools --upgrade
- name: Build and install
run: rm -rf .eggs && pip install -e .
- name: Validate the installation
......@@ -267,7 +267,7 @@ jobs:
- name: Install system dependencies
run: sudo apt-get update && sudo apt-get install -y ffmpeg libturbojpeg
- name: Upgrade Setuptools
run: pip install setuptools==52
run: pip install setuptools --upgrade
- name: Build and install
run: rm -rf .eggs && pip install -e .
- name: Validate the installation
......@@ -321,7 +321,7 @@ jobs:
- name: Install PyTorch
run: pip install torch==${{matrix.torch}} torchvision==${{matrix.torchvision}} --no-cache-dir
- name: Upgrade Setuptools
run: pip install setuptools==52
run: pip install setuptools --upgrade
- name: Build and install
run: |
rm -rf .eggs
......
......@@ -12,6 +12,8 @@ jobs:
uses: actions/setup-python@v1
with:
python-version: 3.7
- name: Upgrade Setuptools
run: pip install setuptools --upgrade
- name: Build MMCV
run: python setup.py sdist
- name: Publish distribution to PyPI
......@@ -28,6 +30,8 @@ jobs:
uses: actions/setup-python@v1
with:
python-version: 3.7
- name: Upgrade Setuptools
run: pip install setuptools --upgrade
- name: Build MMCV with ops
run: |
sed -i "s/os.getenv('MMCV_WITH_OPS', '0')/os.getenv('MMCV_WITH_OPS', '1')/g" setup.py
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment