From d95e0ee85d3ce3a376c46dfdbf22b0f23749b654 Mon Sep 17 00:00:00 2001 From: guipenedo Date: Wed, 28 Aug 2024 17:36:23 +0200 Subject: [PATCH] temporarily disable testpypi upload --- .github/workflows/pypi-release.yml | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) 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