Workflow file for this run
This file contains hidden or 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: Release Python Package to PyPI | |
| on: | |
| release: | |
| types: [published] | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.10' | |
| - name: Setup | |
| run: pip install poetry poetry-dynamic-versioning | |
| - name: Config | |
| run: poetry config repositories.pypi https://upload.pypi.org/legacy/ | |
| - name: Build | |
| run: | | |
| poetry install | |
| poetry build | |
| - name: Publish | |
| run: poetry publish -r pypi -u __token__ -p ${{ secrets.PYPI_TOKEN }} | |
| test: | |
| runs-on: ubuntu-24.04 | |
| needs: deploy | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.10' | |
| - name: Setup | |
| run: pip install poetry poetry-dynamic-versioning | |
| - name: Install | |
| run: pip install onnx-passes==$(poetry version -s) |