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

Commit 7254392

Browse files
committed
genericize dist test
1 parent cbd082e commit 7254392

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/code.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,13 +96,13 @@ jobs:
9696
export SOURCE_DATE_EPOCH=$(git log -1 --pretty=%ct) && \
9797
pipx run build
9898
99-
# ${GITHUB_REPOSITORY##*/} is the repo name without org
100-
# Replace this with the cli command if different to the repo name
101-
- name: Test cli works using the wheel installed in local python
99+
- name: Test module --version works using the installed wheel
102100
run: |
103101
touch requirements.txt
104102
pip install -r requirements.txt dist/*.whl
105-
${GITHUB_REPOSITORY##*/} --version
103+
# replace with module name if necessary
104+
MODULE=$(ls src | head -1) && \
105+
python -m ${MODULE} --version
106106
107107
- name: Test Publish to PyPI
108108
env:

0 commit comments

Comments
 (0)