Skip to content

Commit 12ec5e1

Browse files
committed
fix regex; get version string directly by invoking setup.py
1 parent 63fcef9 commit 12ec5e1

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,11 @@ jobs:
3636
- name: Build Package
3737
run: python3 -m build
3838

39-
- name: Install the build in workspace
40-
run: |
41-
pip install ./dist/netfoundry-*.tar.gz
42-
4339
- name: Read version string
4440
id: run_version
4541
run: |
46-
PYPI_VERSION=$(python3 -m netfoundry.version)
47-
[[ ${PYPI_VERSION} =~ ^v[0-9]\s+\.[0-9]\s+\.[0-9]\s+.* ]] || {
42+
PYPI_VERSION=$(python setup.py --version)
43+
[[ ${PYPI_VERSION} =~ ^[0-9]+\.[0-9]+\.[0-9]+.* ]] || {
4844
echo "ERROR: unexpected version string '${PYPI_VERSION}'" >&2
4945
exit 1
5046
}

0 commit comments

Comments
 (0)