Skip to content

Commit ddba171

Browse files
committed
Remove test.pypi step on releases
1 parent af91b42 commit ddba171

File tree

1 file changed

+1
-26
lines changed

1 file changed

+1
-26
lines changed

.github/workflows/pypi.yml

+1-26
Original file line numberDiff line numberDiff line change
@@ -45,35 +45,10 @@ jobs:
4545
with:
4646
name: artifact
4747
path: dist/*
48-
test:
49-
name: upload to test PyPI
50-
needs: [build]
51-
runs-on: ubuntu-latest
52-
if: github.event_name == 'release' && github.event.action == 'published'
53-
steps:
54-
- uses: actions/download-artifact@v3
55-
with:
56-
name: artifact
57-
path: dist
58-
- uses: pypa/gh-action-pypi-publish@release/v1
59-
with:
60-
skip_existing: true
61-
user: __token__
62-
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
63-
repository_url: https://test.pypi.org/legacy/
64-
- uses: actions/setup-python@v5
65-
with:
66-
python-version: "3.10"
67-
- name: Test pip install from test.pypi
68-
run: |
69-
python -m venv venv-test-pypi
70-
venv-test-pypi/bin/python -m pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple pymc-experimental
71-
echo "Checking import and version number"
72-
venv-test-pypi/bin/python -c "import pymc_experimental; assert pymc_experimental.__version__ == '${{ github.ref_name }}'[1:]"
7348

7449
publish:
7550
name: upload release to PyPI
76-
needs: [build, test]
51+
needs: [build]
7752
runs-on: ubuntu-latest
7853
if: github.event_name == 'release' && github.event.action == 'published'
7954
steps:

0 commit comments

Comments
 (0)