Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check uploaded version for testpypi and pypi seperately #110

Merged
merged 1 commit into from
Jun 23, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 25 additions & 15 deletions .github/workflows/pythonpublish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,21 +70,6 @@ jobs:
password: ${{ secrets.TESTPYPI_TOKEN }}
repository_url: https://test.pypi.org/legacy/
verbose: true
# - name: Setup upterm session
# uses: lhotari/action-upterm@v1
- name: Check uploaded package
run: |
sleep 10
python -m pip install --upgrade pip
pip cache purge
# This is kind of stupid, but the only way I got this to work with the latest versions on testpypi
# If I used: python -m pip install --extra-index-url https://test.pypi.org/simple --upgrade xarrayutils
# It would grab an older cmip6_pp version and with `--index-url=...` I cant get the proper dependencies from pypi
# So I am installing the dependencies manually from pypi and the newest version from testpypi...not sure if this
# defeats the purpose, but I am frankly fed up with this shit!
python -m pip install xarray dask numpy scipy
python -m pip install --index-url https://test.pypi.org/simple --upgrade xarrayutils
python -c "import xarrayutils;print(xarrayutils.__version__)"
upload-to-pypi:
needs: test-built-dist
if: "!github.event.release.prerelease"
Expand All @@ -100,3 +85,28 @@ jobs:
user: __token__
password: ${{ secrets.PYPI_TOKEN }}
verbose: true
check-version-testpypi:
runs-on: ubuntu-latest
steps:
- name: Check uploaded testpypi package
run: |
sleep 10
python -m pip install --upgrade pip
pip cache purge
# This is kind of stupid, but the only way I got this to work with the latest versions on testpypi
# If I used: python -m pip install --extra-index-url https://test.pypi.org/simple --upgrade xarrayutils
# It would grab an older cmip6_pp version and with `--index-url=...` I cant get the proper dependencies from pypi
# So I am installing the dependencies manually from pypi and the newest version from testpypi...not sure if this
# defeats the purpose, but I am frankly fed up with this shit!
python -m pip install xarray dask numpy scipy
python -m pip install --index-url https://test.pypi.org/simple --upgrade xarrayutils
python -c "import xarrayutils;print(xarrayutils.__version__)"
check-version-pypi:
runs-on: ubuntu-latest
steps:
- name: Check uploaded pypi package
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade xarrayutils
python -c "import xarrayutils;print(xarrayutils.__version__)"