Skip to content

Commit abf164c

Browse files
authored
Update build_wheel.yml
1 parent d3ed27a commit abf164c

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

Diff for: .github/workflows/build_wheel.yml

+10-3
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ jobs:
7171
- name: Commit updated version
7272
if: steps.version_changed.outputs.version_changed == 'false'
7373
run: |
74-
git config --global user.name "${{ github.actor }}"
75-
git config --global user.email "${{ github.actor }}@users.noreply.github.com"
74+
git config --global user.name mlcommons-bot
75+
git config --global user.email "mlcommons-bot@users.noreply.github.com"
7676
git add VERSION
7777
git commit -m "Increment version to ${{ steps.do_version_increment.outputs.new_version }}"
7878
git push
@@ -86,7 +86,14 @@ jobs:
8686
working-directory: ./
8787
run: python3 -m build && rm dist/*.whl
8888

89-
# Step 8: Publish to PyPI
89+
# Step 8: Install the built wheel (as a test)
90+
- name: Install wheel
91+
working-directory: ./
92+
run: |
93+
wheel_file=$(ls dist/*.whl | tail -n 1)
94+
python3 -m pip install "$wheel_file"
95+
96+
# Step 9: Publish to PyPI
9097
- name: Publish to PyPI
9198
uses: pypa/gh-action-pypi-publish@release/v1
9299
with:

0 commit comments

Comments
 (0)