Skip to content

Commit 5321c78

Browse files
ci(github): fix workflow test.yml
1 parent eefc0d1 commit 5321c78

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.github/workflows/test.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,18 @@ jobs:
4343
cache: pip
4444
python-version: 3
4545

46+
- name: Install package
47+
run: pipx install .
48+
4649
- name: Check version
4750
run: |
4851
version=$(grep version src/python_cli_template/__init__.py | cut -d'"' -f 2)
4952
set -e
50-
[[ $(python -m python_cli_template --version) == $version ]]
51-
[[ $(python -m python_cli_template -v) == $version ]]
53+
[[ $(python_cli_template --version) == $version ]]
54+
[[ $(python_cli_template -v) == $version ]]
5255
5356
- name: Get help
54-
run: python -m python_cli_template --help
57+
run: python_cli_template --help
5558

5659
- name: Execute CLI
57-
run: python -m python_cli_template --name test
60+
run: python_cli_template --name test

0 commit comments

Comments
 (0)