Skip to content

Commit a840ef3

Browse files
ci(github): fix version in test.yml
1 parent 74bb6ce commit a840ef3

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,19 +43,13 @@ jobs:
4343
cache: pip
4444
python-version: 3
4545

46-
- name: Install build
47-
run: pip install build
48-
49-
- name: Build package
50-
run: python -m build
51-
5246
- name: Install package
5347
run: pipx install .
5448

5549
- name: Check version
5650
run: |
5751
set -e
58-
version=$(python -c 'import python_cli_template; print(python_cli_template.__version__)')
52+
version=$(grep version src/python_cli_template/__init__.py | cut -d'"' -f 2")
5953
[[ $(python -m python_cli_template --version) == $version ]]
6054
[[ $(python -m python_cli_template -v) == $version ]]
6155
[[ $(python_cli_template --version) == $version ]]

0 commit comments

Comments
 (0)