Skip to content
This repository was archived by the owner on Mar 13, 2024. It is now read-only.

Commit cbd082e

Browse files
committed
add twine check
1 parent 0c7ea12 commit cbd082e

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/code.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,12 +98,18 @@ jobs:
9898
9999
# ${GITHUB_REPOSITORY##*/} is the repo name without org
100100
# Replace this with the cli command if different to the repo name
101-
- name: Test cli works in sdist installed in local python
101+
- name: Test cli works using the wheel installed in local python
102102
run: |
103103
touch requirements.txt
104104
pip install -r requirements.txt dist/*.whl
105105
${GITHUB_REPOSITORY##*/} --version
106106
107+
- name: Test Publish to PyPI
108+
env:
109+
TWINE_USERNAME: __token__
110+
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
111+
run: pipx run twine check dist/*
112+
107113
- name: Upload sdist and wheel as artifacts
108114
uses: actions/upload-artifact@v3
109115
with:

0 commit comments

Comments
 (0)