File tree Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Upload Python Package
2+
3+ on :
4+ release :
5+ types : [created]
6+
7+ jobs :
8+ deploy :
9+ runs-on : ubuntu-latest
10+ steps :
11+ - uses : actions/checkout@v2
12+ - name : Set up Python
13+ uses : actions/setup-python@v1
14+ with :
15+ python-version : ' 3.x'
16+ - name : Install dependencies
17+ run : |
18+ python -m pip install --upgrade pip
19+ pip install setuptools wheel twine
20+ pip install -r sdk/requirements.txt
21+ pip install -r tests/requirements.txt
22+ - name : Run Tests
23+ env :
24+ appSid : ${{secrets.appSidProd}}
25+ appKey : ${{secrets.appKeyProd}}
26+ apiBaseUrl : " https://api.aspose.cloud"
27+ run : |
28+ python -m pytest -m pipeline tests
29+ - name : Build and publish
30+ env :
31+ TWINE_USERNAME : ${{ secrets.PYPI_USERNAME }}
32+ TWINE_PASSWORD : ${{ secrets.PYPI_PASSWORD }}
33+ run : |
34+ python setup.py sdist bdist_wheel
35+ twine upload dist/*
You can’t perform that action at this time.
0 commit comments