"server/vscode:/vscode.git/clone" did not exist on "d6af14b25b6c7335b8e9d241fa42cc4e132b8b35"
Unverified Commit 107f1843 authored by Zaida Zhou's avatar Zaida Zhou Committed by GitHub
Browse files

[Fix] ops can not be built in github action (#2783)

* Fix CI

* Fix CI

* revert comments

* print cl

* use latest

* install wheel

* install wheel

* fix

* Update .github/workflows/pr_stage_test.yml
parent 89a26452
...@@ -94,8 +94,8 @@ jobs: ...@@ -94,8 +94,8 @@ jobs:
python-version: ${{ matrix.python-version }} python-version: ${{ matrix.python-version }}
- 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 pip - name: Upgrade pip and wheel
run: pip install pip --upgrade run: pip install pip wheel --upgrade
- 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: Install MMEngine from main branch - name: Install MMEngine from main branch
...@@ -144,8 +144,8 @@ jobs: ...@@ -144,8 +144,8 @@ jobs:
python-version: ${{ matrix.python-version }} python-version: ${{ matrix.python-version }}
- 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 pip - name: Upgrade pip and wheel
run: pip install pip --upgrade run: pip install pip wheel --upgrade
- 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: Install MMEngine from main branch - name: Install MMEngine from main branch
...@@ -184,8 +184,8 @@ jobs: ...@@ -184,8 +184,8 @@ jobs:
uses: actions/setup-python@v2 uses: actions/setup-python@v2
with: with:
python-version: ${{ matrix.python-version }} python-version: ${{ matrix.python-version }}
- name: Upgrade pip - name: Upgrade pip and wheel
run: pip install pip --upgrade run: pip install pip wheel --upgrade
- name: Fetch GPG keys - name: Fetch GPG keys
run: | 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/cuda/repos/ubuntu1804/x86_64/3bf863cc.pub
...@@ -218,8 +218,8 @@ jobs: ...@@ -218,8 +218,8 @@ jobs:
uses: actions/setup-python@v2 uses: actions/setup-python@v2
with: with:
python-version: ${{ matrix.python-version }} python-version: ${{ matrix.python-version }}
- name: Upgrade pip - name: Upgrade pip and wheel
run: pip install pip --upgrade run: pip install pip wheel --upgrade
- name: Fetch GPG keys - name: Fetch GPG keys
run: | 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/cuda/repos/ubuntu1804/x86_64/3bf863cc.pub
...@@ -252,8 +252,8 @@ jobs: ...@@ -252,8 +252,8 @@ jobs:
uses: actions/setup-python@v2 uses: actions/setup-python@v2
with: with:
python-version: ${{ matrix.python-version }} python-version: ${{ matrix.python-version }}
- name: Upgrade pip - name: Upgrade pip and wheel
run: pip install pip --upgrade run: pip install pip wheel --upgrade
- name: Fetch GPG keys - name: Fetch GPG keys
run: | 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/cuda/repos/ubuntu1804/x86_64/3bf863cc.pub
...@@ -286,8 +286,8 @@ jobs: ...@@ -286,8 +286,8 @@ jobs:
uses: actions/setup-python@v2 uses: actions/setup-python@v2
with: with:
python-version: ${{ matrix.python-version }} python-version: ${{ matrix.python-version }}
- name: Upgrade pip - name: Upgrade pip and wheel
run: python -m pip install pip --upgrade run: python -m pip install pip wheel --upgrade
- name: Install PyTorch - 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 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 - name: Install MMEngine from main branch
...@@ -318,8 +318,8 @@ jobs: ...@@ -318,8 +318,8 @@ jobs:
uses: actions/setup-python@v2 uses: actions/setup-python@v2
with: with:
python-version: ${{ matrix.python-version }} python-version: ${{ matrix.python-version }}
- name: Upgrade pip - name: Upgrade pip and wheel
run: python -m pip install pip --upgrade run: python -m pip install pip wheel --upgrade
- 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: Install MMEngine from main branch - name: Install MMEngine from main branch
...@@ -352,8 +352,8 @@ jobs: ...@@ -352,8 +352,8 @@ jobs:
python-version: ${{ matrix.python-version }} python-version: ${{ matrix.python-version }}
- name: Install system dependencies - name: Install system dependencies
run: brew install ffmpeg jpeg-turbo run: brew install ffmpeg jpeg-turbo
- name: Upgrade pip - name: Upgrade pip and wheel
run: pip install pip --upgrade run: pip install pip wheel --upgrade
- name: Install PyTorch - name: Install PyTorch
run: pip install torch==${{ matrix.torch }} torchvision==${{ matrix.torchvision }} run: pip install torch==${{ matrix.torch }} torchvision==${{ matrix.torchvision }}
- name: Install MMEngine from main branch - name: Install MMEngine from main branch
......
...@@ -32,8 +32,8 @@ jobs: ...@@ -32,8 +32,8 @@ jobs:
uses: actions/setup-python@v2 uses: actions/setup-python@v2
with: with:
python-version: ${{ matrix.python-version }} python-version: ${{ matrix.python-version }}
- name: Upgrade pip - name: Upgrade pip and wheel
run: pip install pip --upgrade run: pip install pip wheel --upgrade
- name: Fetch GPG keys - name: Fetch GPG keys
run: | 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/cuda/repos/ubuntu1804/x86_64/3bf863cc.pub
...@@ -74,8 +74,8 @@ jobs: ...@@ -74,8 +74,8 @@ jobs:
uses: actions/setup-python@v2 uses: actions/setup-python@v2
with: with:
python-version: ${{ matrix.python-version }} python-version: ${{ matrix.python-version }}
- name: Upgrade pip - name: Upgrade pip and wheel
run: pip install pip --upgrade run: pip install pip wheel --upgrade
- name: Fetch GPG keys - name: Fetch GPG keys
run: | 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/cuda/repos/ubuntu1804/x86_64/3bf863cc.pub
...@@ -108,8 +108,8 @@ jobs: ...@@ -108,8 +108,8 @@ jobs:
uses: actions/setup-python@v2 uses: actions/setup-python@v2
with: with:
python-version: ${{ matrix.python-version }} python-version: ${{ matrix.python-version }}
- name: Upgrade pip - name: Upgrade pip and wheel
run: python -m pip install pip --upgrade run: python -m pip install pip wheel --upgrade
- name: Install PyTorch - 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 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 - name: Install MMEngine from main branch
...@@ -140,8 +140,8 @@ jobs: ...@@ -140,8 +140,8 @@ jobs:
uses: actions/setup-python@v2 uses: actions/setup-python@v2
with: with:
python-version: ${{ matrix.python-version }} python-version: ${{ matrix.python-version }}
- name: Upgrade pip - name: Upgrade pip and wheel
run: python -m pip install pip --upgrade run: python -m pip install pip wheel --upgrade
- 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: Install MMEngine from main branch - name: Install MMEngine from main branch
...@@ -174,8 +174,8 @@ jobs: ...@@ -174,8 +174,8 @@ jobs:
python-version: ${{ matrix.python-version }} python-version: ${{ matrix.python-version }}
- name: Install system dependencies - name: Install system dependencies
run: brew install ffmpeg jpeg-turbo run: brew install ffmpeg jpeg-turbo
- name: Upgrade pip - name: Upgrade pip and wheel
run: pip install pip --upgrade run: pip install pip wheel --upgrade
- name: Install PyTorch - name: Install PyTorch
run: pip install torch==${{ matrix.torch }} torchvision==${{ matrix.torchvision }} run: pip install torch==${{ matrix.torch }} torchvision==${{ matrix.torchvision }}
- name: Install MMEngine from main branch - name: Install MMEngine from main branch
......
...@@ -7,7 +7,7 @@ concurrency: ...@@ -7,7 +7,7 @@ concurrency:
cancel-in-progress: true cancel-in-progress: true
jobs: jobs:
build-n-publish: build-n-publish_without_ops:
runs-on: ubuntu-22.04 runs-on: ubuntu-22.04
if: startsWith(github.event.ref, 'refs/tags') if: startsWith(github.event.ref, 'refs/tags')
steps: steps:
...@@ -21,7 +21,7 @@ jobs: ...@@ -21,7 +21,7 @@ jobs:
- name: Build MMCV - name: Build MMCV
run: | run: |
sed -i "s/os.getenv('MMCV_WITH_OPS', '1')/os.getenv('MMCV_WITH_OPS', '0')/g" setup.py sed -i "s/os.getenv('MMCV_WITH_OPS', '1')/os.getenv('MMCV_WITH_OPS', '0')/g" setup.py
python setup.py sdist python setup.py sdist bdist_wheel
- name: Publish distribution to PyPI - name: Publish distribution to PyPI
run: | run: |
pip install twine pip install twine
......
...@@ -7,3 +7,4 @@ sphinx==4.0.2 ...@@ -7,3 +7,4 @@ sphinx==4.0.2
sphinx-copybutton sphinx-copybutton
sphinx_markdown_tables>=0.0.16 sphinx_markdown_tables>=0.0.16
torch torch
urllib3<2.0.0
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