Skip to content

Commit

Permalink
Add release build workflow (vllm-project#89)
Browse files Browse the repository at this point in the history
* add release build workflow

* minor update

---------

Co-authored-by: dhuangnm <[email protected]>
  • Loading branch information
dhuangnm and dhuangnm authored Jun 17, 2024
1 parent 4f0bd6a commit d611303
Showing 1 changed file with 66 additions and 0 deletions.
66 changes: 66 additions & 0 deletions .github/workflows/build-test-release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
name: Build and test release wheel

on:
push:
branches:
- 'release/*'

workflow_dispatch:
inputs:
gitref:
description: "git tag, commit or branch name for the release"
type: string
required: true
default: 'v0.4.0'

jobs:
build-test-release-wheel:
runs-on: ubuntu-20.04
steps:
- uses: actions/setup-python@v4
with:
python-version: '3.10'

- name: Checkout code
uses: actions/checkout@v4
with:
ref: ${{ inputs.gitref }}

- name: Build PyPi Wheel
id: build
uses: neuralmagic/nm-actions/actions/pypi_build@main
with:
dev: false
release: true

- name: Set Env
run: |
pip3 install --upgrade pip && pip3 install --upgrade setuptools
pip3 install virtualenv
virtualenv venv
source venv/bin/activate
- name: upload whl
uses: actions/upload-artifact@v4
if: success() || failure()
with:
name: "wheel-compressed-tensors"
path: ${{ steps.build.outputs.whlname }}
retention-days: 7

- name: upload tar.gz
uses: actions/upload-artifact@v4
if: success() || failure()
with:
name: "tar-compressed-tensors"
path: ${{ steps.build.outputs.tarname }}
retention-days: 7

- name: Install whl
run: |
pip3 install ${{ steps.build.outputs.whlname }}[dev]
- name: Remove src files and run tests
run: |
rm -rf src
make test

0 comments on commit d611303

Please sign in to comment.