diff options
author | Dominik Holland <dominik.holland@qt.io> | 2021-06-29 14:39:21 +0200 |
---|---|---|
committer | Dominik Holland <dominik.holland@googlemail.com> | 2022-01-27 13:50:04 +0100 |
commit | a70d7c60f393977b8e4a83babc3a96cc36e6be97 (patch) | |
tree | 2cfcdd49ad30ce77e1ba2b2a75ac8992746414cd | |
parent | 5000f8cec478bdeac88b6a1aa7f014020d539802 (diff) | |
download | qtivi-qface-a70d7c60f393977b8e4a83babc3a96cc36e6be97.tar.gz |
CI: Upload the new version to test-pypi on every push
-rw-r--r-- | .github/workflows/python-package.yml | 10 |
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 |