File tree Expand file tree Collapse file tree 1 file changed +1
-26
lines changed Expand file tree Collapse file tree 1 file changed +1
-26
lines changed Original file line number Diff line number Diff 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 :
You can’t perform that action at this time.
0 commit comments