build(deps-dev): bump pytest from 7.4.4 to 8.1.1 #25
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Python package | |
# necessary check for Python project, publish to PyPI performed locally | |
on: | |
push: | |
branches: | |
- main | |
tags: | |
- v* | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
py-package: | |
permissions: | |
contents: write | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- run: | | |
pip install --no-cache-dir poetry | |
- name: verify | |
if: startsWith(github.ref, 'refs/tags/v') | |
run: | | |
py_version=$(poetry version --short) | |
VERSION=$(echo "${{ github.ref }}" | sed -e 's,.*/\(.*\),\1,') | |
tag_version=${VERSION#v} | |
if [[ $py_version != $tag_version ]] ; then | |
echo "publish version does not match, $py_version vs $tag_version" | |
exit 1 | |
fi | |
- name: build | |
run: | | |
poetry install | |
poetry build | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
if: startsWith(github.ref, 'refs/tags/v') | |
with: | |
files: | | |
./openmldb_mixin/openmldb_dashboard.json | |