Skip to content

Commit

Permalink
temporarily disable testpypi upload
Browse files Browse the repository at this point in the history
  • Loading branch information
guipenedo committed Aug 28, 2024
1 parent 1297570 commit d95e0ee
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions .github/workflows/pypi-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,25 +31,25 @@ jobs:
- name: Build the dist files
run: python -m build .

- name: Publish to the test PyPI
env:
TWINE_PASSWORD: ${{ secrets.TEST_PYPI_TOKEN }}
run: twine upload dist/* --skip-existing --repository=testpypi
#
# - name: Publish to the test PyPI
# env:
# TWINE_PASSWORD: ${{ secrets.TEST_PYPI_TOKEN }}
# run: twine upload dist/* --skip-existing --repository=testpypi

- name: Get tag name
id: get_tag_name
run: |
echo TAG_NAME=$(grep '^version' pyproject.toml | head -1 | cut -d '"' -f 2) >> $GITHUB_OUTPUT
- name: Test installing from test PyPI and running tests
# install the wheel we just uploaded to testpypi directly, and all other dependencies from normal pypi
# uses the version number to fetch the url of the .whl file
run: |
python -m pip install uv
uv pip install --system datatrove[testing]@$(curl -s https://test.pypi.org/simple/datatrove/ | grep ${{ steps.get_tag_name.outputs.TAG_NAME }}-py3 | sed -nE 's/.*href="([^"]+)".*/\1/p')
python -m nltk.downloader punkt
python -m pytest -sv ./tests/
# - name: Test installing from test PyPI and running tests
# # install the wheel we just uploaded to testpypi directly, and all other dependencies from normal pypi
# # uses the version number to fetch the url of the .whl file
# run: |
# python -m pip install uv
# uv pip install --system datatrove[testing]@$(curl -s https://test.pypi.org/simple/datatrove/ | grep ${{ steps.get_tag_name.outputs.TAG_NAME }}-py3 | sed -nE 's/.*href="([^"]+)".*/\1/p')
# python -m nltk.downloader punkt
# python -m pytest -sv ./tests/

- name: Tag the release
uses: actions/github-script@v7
Expand Down

0 comments on commit d95e0ee

Please sign in to comment.