Skip to content

Commit

Permalink
[Fix] Fix CI of deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
zhouzaida committed Jul 27, 2021
1 parent 88d8c9e commit 0d91f3c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/publish-to-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 0d91f3c

Please sign in to comment.