From 18f0f6d396059f194abc9738c7e1d9eaa63ac592 Mon Sep 17 00:00:00 2001 From: Alessio Buccino Date: Sat, 6 Apr 2024 16:48:52 +0200 Subject: [PATCH 1/2] Update publish action --- .github/workflows/python-publish.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index 4324b57..f2d968b 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -17,7 +17,7 @@ jobs: - uses: actions/checkout@v2 - uses: s-weigand/setup-conda@v1 with: - python-version: "3.9" + python-version: "3.10" - name: Which python run: | conda --version @@ -28,10 +28,12 @@ jobs: - name: Test with pytest and build coverage report run: | pytest -s - - name: Publish on PyPI + - name: Package and Upload env: - TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} - TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} + STACKMANAGER_VERSION: ${{ github.event.release.tag_name }} + TWINE_USERNAME: __token__ + TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }} run: | - python setup.py sdist bdist_wheel + python -m build --sdist --wheel twine upload dist/* + From 9bc8470108902bb61f62db9c557183aa69326826 Mon Sep 17 00:00:00 2001 From: Alessio Buccino Date: Sat, 6 Apr 2024 16:49:22 +0200 Subject: [PATCH 2/2] Update publish action2 --- .github/workflows/python-publish.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index f2d968b..0754df3 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -25,9 +25,6 @@ jobs: run: | pip install .[templates,test] pip install setuptools wheel twine - - name: Test with pytest and build coverage report - run: | - pytest -s - name: Package and Upload env: STACKMANAGER_VERSION: ${{ github.event.release.tag_name }}