Skip to content

Commit

Permalink
fixed workflow erros
Browse files Browse the repository at this point in the history
  • Loading branch information
hynky1999 committed Apr 22, 2024
1 parent 48b1b21 commit 246e343
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/pypi-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ on:
workflow_dispatch:

jobs:
ci:
testing:
uses: ./.github/workflows/ci.yml
release:
needs: ci
Expand Down Expand Up @@ -34,11 +34,10 @@ jobs:
run: twine upload dist/* --repository=testpypi

- name: Test installing from test PyPI and running tests
env:
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
run: |
pip install -i https://testpypi.python.org/pypi --extra-index-url https://pypi.org/simple datatrove[testing]
python -m nltk.downloader punkt
make test
- name: Get tag name
id: get_tag_name
Expand All @@ -52,11 +51,10 @@ jobs:
github.rest.git.createRef({
owner: context.repo.owner,
repo: context.repo.repo,
ref: 'refs/tags/${{ steps.get_tag_name.outputs.TAG_NAME }}',
ref: 'refs/tags/v${{ steps.get_tag_name.outputs.TAG_NAME }}',
sha: context.sha
})
- name: Publish to PyPI
env:
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml → .github/workflows/testing.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: CI
name: Test & Check Code Quality

on:
pull_request:
Expand Down

0 comments on commit 246e343

Please sign in to comment.