From 1d8a8a5df3cdaae8031582d1235554749ebfea6b Mon Sep 17 00:00:00 2001 From: Luciano Paz Date: Fri, 6 Sep 2024 10:44:32 +0200 Subject: [PATCH] Remove test.pypi step on releases --- .github/workflows/pypi.yml | 27 +-------------------------- 1 file changed, 1 insertion(+), 26 deletions(-) diff --git a/.github/workflows/pypi.yml b/.github/workflows/pypi.yml index 20a3e2604..e7df1cff1 100644 --- a/.github/workflows/pypi.yml +++ b/.github/workflows/pypi.yml @@ -45,35 +45,10 @@ jobs: with: name: artifact path: dist/* - test: - name: upload to test PyPI - needs: [build] - runs-on: ubuntu-latest - if: github.event_name == 'release' && github.event.action == 'published' - steps: - - uses: actions/download-artifact@v3 - with: - name: artifact - path: dist - - uses: pypa/gh-action-pypi-publish@release/v1 - with: - skip_existing: true - user: __token__ - password: ${{ secrets.TEST_PYPI_API_TOKEN }} - repository_url: https://test.pypi.org/legacy/ - - uses: actions/setup-python@v5 - with: - python-version: "3.10" - - name: Test pip install from test.pypi - run: | - python -m venv venv-test-pypi - venv-test-pypi/bin/python -m pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple pymc-experimental - echo "Checking import and version number" - venv-test-pypi/bin/python -c "import pymc_experimental; assert pymc_experimental.__version__ == '${{ github.ref_name }}'[1:]" publish: name: upload release to PyPI - needs: [build, test] + needs: [build] runs-on: ubuntu-latest if: github.event_name == 'release' && github.event.action == 'published' steps: