diff --git a/.github/workflows/pypi-release.yml b/.github/workflows/pypi-release.yml index d2282c93..87255080 100644 --- a/.github/workflows/pypi-release.yml +++ b/.github/workflows/pypi-release.yml @@ -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