Skip to content

Commit 464e79b

Browse files
ci(github): fix check version in test.yml
1 parent 5f5569a commit 464e79b

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

.github/workflows/test.yml

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

46-
- name: Install package
47-
run: pipx install .
48-
4946
- name: Check version
5047
run: |
51-
set -e
48+
pipx install .
5249
version=$(grep version src/python_cli_template/__init__.py | cut -d'"' -f 2)
53-
[[ $(python -m python_cli_template --version) == $version ]]
54-
[[ $(python -m python_cli_template -v) == $version ]]
50+
set -e
5551
[[ $(python_cli_template --version) == $version ]]
5652
[[ $(python_cli_template -v) == $version ]]
5753
5854
- name: Get help
59-
run: python_cli_template --help
55+
run: python -m python_cli_template --help
6056

6157
- name: Execute CLI
62-
run: python_cli_template --name test
58+
run: python -m python_cli_template --name test

0 commit comments

Comments
 (0)