File tree Expand file tree Collapse file tree 2 files changed +35
-3
lines changed Expand file tree Collapse file tree 2 files changed +35
-3
lines changed Original file line number Diff line number Diff line change 1+ name : Release Python package
2+
3+ on :
4+ workflow_run :
5+ workflows : [tests]
6+ branches : [main]
7+ types : [completed]
8+
9+ jobs :
10+ release :
11+ needs : test
12+ runs-on : ubuntu-latest
13+ name : Release package to PyPi
14+ if : github.event_name == 'push' && contains(github.ref, 'refs/tags/')
15+ steps :
16+ - uses : actions/checkout@master
17+ - name : Set up Python 3.8
18+ uses : actions/setup-python@v1
19+ with :
20+ python-version : 3.8
21+ - name : Install dependencies
22+ run : |
23+ python -m pip install --upgrade pip
24+ python -m pip install tox tox-gh-actions
25+ - name : Build and release 📦 to PyPI
26+ with :
27+ TWINE_USERNAME : ${{ secrets.TWINE_USERNAME }}
28+ TWINE_PASSWORD : ${{ secrets.TWINE_PASSWORD }}
29+ run : |
30+ tox -e release
31+
Original file line number Diff line number Diff line change 44 - push
55
66jobs :
7- build :
7+ test :
88 runs-on : ubuntu-latest
99 name : Docker | GDAL=${{ matrix.gdal-version }} | python=${{ matrix.python-version }}
1010 container : osgeo/gdal:ubuntu-small-${{ matrix.gdal-version }}
4545 python -m pip install tox
4646 - name : Lint with tox
4747 run : tox -e lint
48- # - name: Format with tox
49- # run: tox -e format
48+ - name : Format with tox
49+ run : tox -e format
5050 - name : Flake8 with tox
5151 run : tox -e flake8
5252 - name : Test with tox
5353 run : tox -e test
54+
You can’t perform that action at this time.
0 commit comments