File tree Expand file tree Collapse file tree 2 files changed +13
-44
lines changed Expand file tree Collapse file tree 2 files changed +13
-44
lines changed Original file line number Diff line number Diff line change 1
1
name : testcontainers-python
2
2
on :
3
3
push :
4
- branches : [ master ]
4
+ branches : [master]
5
5
pull_request :
6
- branches : [ master ]
6
+ branches : [master]
7
7
8
8
jobs :
9
9
sphinx :
@@ -108,3 +108,14 @@ jobs:
108
108
run : >
109
109
pytest -svx --cov-report=term-missing --cov=testcontainers.${{ matrix.test-component }}
110
110
--tb=short ${{ matrix.test-component }}/tests
111
+ - name : Build the package
112
+ working-directory : ${{ matrix.test-component }}
113
+ run : |
114
+ python setup.py bdist_wheel
115
+ twine check dist/*
116
+ - name : Publish the package to pypi
117
+ if : github.event_name == 'push' && github.ref == 'refs/heads/master' && github.repository_owner == 'testcontainers'
118
+ env :
119
+ TWINE_USERNAME : __token__
120
+ TWINE_PASSWORD : ${{ secrets.PYPI_TOKEN }}
121
+ run : twine upload ${{ matrix.test-component }}/dist/*
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments