File tree Expand file tree Collapse file tree 2 files changed +15
-39
lines changed
Expand file tree Collapse file tree 2 files changed +15
-39
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 55 branches : [main]
66 pull_request :
77 branches : [main]
8+ release :
9+ types : [published]
810
911jobs :
1012 tests :
1113 runs-on : ubuntu-latest
1214 steps :
1315 - name : Check out repo
14- uses : actions/checkout@v2
16+ uses : actions/checkout@v3
1517
1618 - name : Set up Python 3.8
17- uses : actions/setup-python@v2
19+ uses : actions/setup-python@v3
1820 with :
1921 python-version : 3.8
2022 cache : pip
2426 run : pip install .[test]
2527
2628 - name : Run tests
29+ id : tests
2730 run : pytest --cov format_ipy_cells
31+
32+ - name : Build and upload dist
33+ if : github.event_name == 'release' && steps.tests.outcome == 'success'
34+ run : |
35+ pip install setuptools wheel twine
36+ python setup.py sdist bdist_wheel
37+ twine upload --skip-existing dist/*.tar.gz
38+ env :
39+ TWINE_USERNAME : janosh
40+ TWINE_PASSWORD : ${{ secrets.TWINE_PASSWORD }}
You can’t perform that action at this time.
0 commit comments