Skip to content

Commit

Permalink
Update publish_pypi.yml
Browse files Browse the repository at this point in the history
- add separate 'pip install -r requirements.txt' and restore '--no-dependencies' to TestPypi PeekingDuck install, as some packages are not available on TestPypi repo.
  • Loading branch information
ongtw authored Aug 18, 2022
1 parent 0e1eb51 commit ed695c1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/publish_pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,11 @@ jobs:
- name: Test installation from Test PyPI
run: |
sleep 300
pip install -i https://test.pypi.org/simple/ peekingduck==$VERSION
# need to separately install requirements (from pypi repo),
# as some packages are not available on test.pypi.org repo
# e.g. tqdm 4.45 not available
pip install -r requirements.txt
pip install -i https://test.pypi.org/simple/ peekingduck==$VERSION --no-deps
peekingduck
- name: Publish distribution 📦 to PyPI
# only pushes to actual PyPI if its a tag (i.e. on release: published)
Expand Down

0 comments on commit ed695c1

Please sign in to comment.