Skip to content

Commit

Permalink
[Fix] Deploy 1.x to pypi (#1075)
Browse files Browse the repository at this point in the history
[Fix] push to pypi
  • Loading branch information
zengyh1900 authored Sep 1, 2022
1 parent 1d36312 commit 1689ca5
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 24 deletions.
42 changes: 21 additions & 21 deletions .github/workflows/publish-to-pypi.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
# name: deploy
name: deploy

# on: push
on: push

# concurrency:
# group: ${{ github.workflow }}-${{ github.ref }}
# cancel-in-progress: true
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

# jobs:
# build-n-publish:
# runs-on: ubuntu-latest
# if: startsWith(github.event.ref, 'refs/tags')
# steps:
# - uses: actions/checkout@v2
# - name: Set up Python 3.7
# uses: actions/setup-python@v1
# with:
# python-version: 3.7
# - name: Build MMEditing
# run: python setup.py sdist
# - name: Publish distribution to PyPI
# run: |
# pip install twine
# twine upload dist/* -u __token__ -p ${{ secrets.pypi_password }}
jobs:
build-n-publish:
runs-on: ubuntu-latest
if: startsWith(github.event.ref, 'refs/tags')
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.7
uses: actions/setup-python@v1
with:
python-version: 3.7
- name: Build MMEditing
run: python setup.py sdist
- name: Publish distribution to PyPI
run: |
pip install twine
twine upload dist/* -u __token__ -p ${{ secrets.pypi_password }}
7 changes: 4 additions & 3 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ ARG PYTORCH="1.6.0"
ARG CUDA="10.1"
ARG CUDA_ALIAS="101"
ARG CUDNN="7"
ARG MMCV="1.3.1"
ARG MMCV="2.0.0rc1"

FROM pytorch/pytorch:${PYTORCH}-cuda${CUDA}-cudnn${CUDNN}-devel

Expand All @@ -16,9 +16,10 @@ RUN apt-get update && apt-get install -y git ninja-build libglib2.0-0 libsm6 lib

# Install mmediting
RUN conda clean --all
RUN git clone https://github.com/open-mmlab/mmediting.git /mmediting
RUN git clone -b 1.x https://github.com/open-mmlab/mmediting.git /mmediting
WORKDIR /mmediting
ENV FORCE_CUDA="1"
RUN pip install mmcv-full==${MMCV} -f https://download.openmmlab.com/mmcv/dist/cu${CUDA_ALIAS}/torch${PYTORCH}/index.html
RUN pip install openmim
RUN mim install mmcv==${MMCV}
RUN pip install -r requirements.txt
RUN pip install --no-cache-dir -e .

0 comments on commit 1689ca5

Please sign in to comment.