Skip to content

Commit 538d6c8

Browse files
committed
Poetry build in CI
1 parent 9ef182c commit 538d6c8

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,8 @@ jobs:
7777
" | sed -e 's/^[[:space:]]\{4\}//' | python)
7878
echo "version_bump_rule: '${version_bump_rule}'"
7979
python -m poetry version "${version_bump_rule}"
80+
python -m poetry build
81+
python -m poetry install
8082
export new_version=$(
8183
python -m poetry run python -c 'from importlib.metadata import version; print(version("quaternionic"))'
8284
)
@@ -97,7 +99,10 @@ jobs:
9799
- name: Publish to PyPI
98100
if: "!contains(github.event.head_commit.message, '[no pypi]')"
99101
shell: bash -l {0}
100-
run: python -m poetry publish
102+
run: |
103+
python -m poetry build
104+
python -m poetry install
105+
python -m poetry publish
101106
102107
- name: Create release
103108
if: "!contains(github.event.head_commit.message, '[no release]')"

0 commit comments

Comments
 (0)