Skip to content

Commit

Permalink
Test that the package uploaded correctly and can be installed
Browse files Browse the repository at this point in the history
  • Loading branch information
manodeep committed Sep 22, 2023
1 parent 3af000b commit 14c4de9
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/pypi-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,12 @@ jobs:
with:
user: __token__
password: ${{ secrets.PyPI_Publish }}
- name: Install package from PyPI
run: python -m pip install Corrfunc==${{ github.event.release.tag_name }}
- name: Verify installed version
run: |
export corrfunc_version=`python -c "import Corrfunc; print(Corrfunc.__version__)"`
echo "Installed Corrfunc version = ${corrfunc_version}"
echo "GitHub Release name = ${{ github.event.release.tag_name }}"
if [[ "$corrfunc_version" != "${{ github.event.release.tag_name }}" ]]; exit 1; fi

0 comments on commit 14c4de9

Please sign in to comment.