File tree Expand file tree Collapse file tree 1 file changed +8
-17
lines changed Expand file tree Collapse file tree 1 file changed +8
-17
lines changed Original file line number Diff line number Diff line change 26
26
with :
27
27
python-version : ${{ matrix.python-version }}
28
28
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
40
29
- name : Test with pytest
41
30
env :
42
31
RINGCENTRAL_SERVER_URL : ${{secrets.RINGCENTRAL_SERVER_URL}}
53
42
pip install -r requirements-dev.txt
54
43
#Run unit tests
55
44
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/*
You can’t perform that action at this time.
0 commit comments