Skip to content

Commit 27193b7

Browse files
committed
Try to publish
1 parent 8193924 commit 27193b7

File tree

1 file changed

+8
-17
lines changed

1 file changed

+8
-17
lines changed

.github/workflows/python-app.yml

Lines changed: 8 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -26,17 +26,6 @@ jobs:
2626
with:
2727
python-version: ${{ matrix.python-version }}
2828

29-
# - name: Install dependencies
30-
# run: |
31-
#python -m pip install --upgrade pip
32-
#pip install flake8 pytest
33-
#if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
34-
# - name: Lint with flake8
35-
# run: |
36-
# stop the build if there are Python syntax errors or undefined names
37-
# flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
38-
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
39-
# flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
4029
- name: Test with pytest
4130
env:
4231
RINGCENTRAL_SERVER_URL: ${{secrets.RINGCENTRAL_SERVER_URL}}
@@ -53,9 +42,11 @@ jobs:
5342
pip install -r requirements-dev.txt
5443
#Run unit tests
5544
python -m unittest discover . --pattern '*test.py'
56-
# make intall
57-
#make install
58-
# make coverage
59-
#make coverage
60-
#cover all
61-
#coveralls
45+
- name: release
46+
if: ${{ env.TAG != '' && !contains(env.TAG, '/') && !contains(env.TAG, '-') && github.repository == 'ringcentral/ringcentral-python' }}
47+
env:
48+
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
49+
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
50+
run: |
51+
python -m build
52+
twine upload dist/*

0 commit comments

Comments
 (0)