fix: improve vLLM plugin compatibility and NCCL receive handling (#109) #5
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: PyPI Release | |
| on: | |
| push: | |
| tags: | |
| - "v*.*.*" | |
| jobs: | |
| publish: | |
| name: Build and publish wheel | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| id-token: write | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v5 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| - name: Derive package version from tag | |
| env: | |
| REF_NAME: ${{ github.ref_name }} | |
| run: | | |
| VERSION="${REF_NAME#v}" | |
| if [[ ! "$VERSION" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then | |
| echo "Tag must match vx.x.x, got: ${REF_NAME}" >&2 | |
| exit 1 | |
| fi | |
| echo "PACKAGE_VERSION=${VERSION}" >> "$GITHUB_ENV" | |
| - name: Bump package version | |
| run: | | |
| python ci/bump_version.py "$PACKAGE_VERSION" | |
| - name: Install build dependencies | |
| run: python -m pip install --upgrade pip build | |
| - name: Build wheel | |
| run: python -m build --wheel | |
| - name: Publish wheel to PyPI | |
| uses: pypa/gh-action-pypi-publish@release/v1 |