|
9 | 9 | runs-on: ubuntu-20.04 |
10 | 10 | steps: |
11 | 11 | - uses: actions/checkout@v2 |
| 12 | + - name: Set up Python |
| 13 | + uses: actions/setup-python@v2 |
| 14 | + with: |
| 15 | + python-version: "3.7" |
| 16 | + - name: Install dependencies |
| 17 | + run: | |
| 18 | + python -m pip install --upgrade pip |
| 19 | + pip install setuptools wheel twine numpy yapf |
| 20 | + - name: Check formatting |
| 21 | + run: yapf -p -r --diff -e '*/pycocotools_sa' superannotate |
| 22 | + - name: Create distribution files |
| 23 | + run: python setup.py sdist |
| 24 | + - name: Publish distribution to PyPI |
| 25 | + if: startsWith(github.ref, 'refs/tags') |
| 26 | + uses: pypa/gh-action-pypi-publish@master |
| 27 | + with: |
| 28 | + password: ${{ secrets.pypi_password }} |
12 | 29 | - |
13 | 30 | name: Set up QEMU |
14 | 31 | uses: docker/setup-qemu-action@v1 |
|
29 | 46 | push: true |
30 | 47 | tags: superannotate/pythonsdk:dev |
31 | 48 | build-args: PIP_FLAGS=--pre |
32 | | - - name: Set up Python |
33 | | - uses: actions/setup-python@v2 |
34 | | - with: |
35 | | - python-version: "3.7" |
36 | | - - name: Install dependencies |
37 | | - run: | |
38 | | - python -m pip install --upgrade pip |
39 | | - pip install setuptools wheel twine numpy yapf |
40 | | - - name: Check formatting |
41 | | - run: yapf -p -r --diff -e '*/pycocotools_sa' superannotate |
42 | | - - name: Create distribution files |
43 | | - run: python setup.py sdist |
44 | | - - name: Publish distribution to PyPI |
45 | | - if: startsWith(github.ref, 'refs/tags') |
46 | | - uses: pypa/gh-action-pypi-publish@master |
47 | | - with: |
48 | | - password: ${{ secrets.pypi_password }} |
0 commit comments