summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDominik Holland <dominik.holland@qt.io>2021-06-29 14:39:21 +0200
committerDominik Holland <dominik.holland@googlemail.com>2021-07-05 16:14:13 +0200
commitc8ea2f57e921a22a7244d5b55f855e09e306d61a (patch)
tree2cfcdd49ad30ce77e1ba2b2a75ac8992746414cd
parent988042f0be4796d179fdfface364a8e71281c63b (diff)
downloadqtivi-qface-c8ea2f57e921a22a7244d5b55f855e09e306d61a.tar.gz
CI: Upload the new version to test-pypi on every push
-rw-r--r--.github/workflows/python-package.yml10
1 files changed, 9 insertions, 1 deletions
diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml
index e2c5831..b931d62 100644
--- a/.github/workflows/python-package.yml
+++ b/.github/workflows/python-package.yml
@@ -28,7 +28,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
- python -m pip install flake8 pytest
+ python -m pip install flake8 pytest setuptools wheel twine
if [ ${{ matrix.dependencies }} == "latest"]; then
pip install -r requirements.txt;
else
@@ -43,3 +43,11 @@ jobs:
- name: Test with pytest
run: |
python -m pytest
+ - name: Upload to TestPyPI
+ run: |
+ python3 setup.py sdist bdist_wheel
+ python3 -m twine upload --skip-existing dist/*
+ env:
+ TWINE_USERNAME: __token__
+ TWINE_PASSWORD: ${{ secrets.TWINE_TEST_TOKEN }}
+ TWINE_REPOSITORY: testpypi