[CI] move image and wheel job to schedule way (#5685)
move image and wheel job to schedule way to save CI resource
- vLLM version: v0.13.0
- vLLM main:
2f4e6548ef
Signed-off-by: wangxiyuan <wangxiyuan1007@gmail.com>
This commit is contained in:
@@ -142,9 +142,9 @@ jobs:
|
|||||||
# which follow the rule from vLLM with prefix v
|
# which follow the rule from vLLM with prefix v
|
||||||
# TODO(yikun): the post release might be considered as latest release
|
# TODO(yikun): the post release might be considered as latest release
|
||||||
tags: |
|
tags: |
|
||||||
type=ref,event=branch,suffix=${{ env.SUFFIX }}
|
|
||||||
type=ref,event=pr,suffix=${{ env.SUFFIX }}
|
|
||||||
type=pep440,pattern={{raw}},suffix=${{ env.SUFFIX }}
|
type=pep440,pattern={{raw}},suffix=${{ env.SUFFIX }}
|
||||||
|
type=schedule,pattern=main,suffix=${{ env.SUFFIX }}
|
||||||
|
type=ref,event=workflow_dispatch,suffix=${{ env.SUFFIX }}
|
||||||
flavor:
|
flavor:
|
||||||
latest=false
|
latest=false
|
||||||
|
|
||||||
@@ -11,52 +11,15 @@
|
|||||||
# - Publish when tag with v* (pep440 version) ===> vllm-ascend:v1.2.3 / vllm-ascend:v1.2.3rc1
|
# - Publish when tag with v* (pep440 version) ===> vllm-ascend:v1.2.3 / vllm-ascend:v1.2.3rc1
|
||||||
name: Image Build and Push
|
name: Image Build and Push
|
||||||
on:
|
on:
|
||||||
pull_request:
|
schedule:
|
||||||
branches:
|
- cron: '0 */2 * * *'
|
||||||
- 'main'
|
|
||||||
- '*-dev'
|
|
||||||
paths:
|
|
||||||
- '.github/workflows/pr_tag_image_build_and_push.yaml'
|
|
||||||
- 'Dockerfile*'
|
|
||||||
- '.github/workflows/_pr_image_build.yml'
|
|
||||||
- 'vllm_ascend/**'
|
|
||||||
- 'setup.py'
|
|
||||||
- 'pyproject.toml'
|
|
||||||
- 'requirements.txt'
|
|
||||||
- 'cmake/**'
|
|
||||||
- 'CMakeLists.txt'
|
|
||||||
- 'csrc/**'
|
|
||||||
# We should also trigger image build when nightly test related files are changed to ensure the image is valid for nightly tests
|
|
||||||
- 'tests/e2e/nightly/'
|
|
||||||
types: [ labeled ]
|
|
||||||
push:
|
push:
|
||||||
# Publish image when tagging, the Dockerfile in tag will be build as tag image
|
|
||||||
branches:
|
|
||||||
- 'main'
|
|
||||||
- '*-dev'
|
|
||||||
tags:
|
tags:
|
||||||
- 'v*'
|
- 'v*'
|
||||||
paths:
|
workflow_dispatch:
|
||||||
- '.github/workflows/pr_tag_image_build_and_push.yaml'
|
|
||||||
- 'Dockerfile*'
|
|
||||||
- '.github/workflows/_pr_image_build.yml'
|
|
||||||
- 'vllm_ascend/**'
|
|
||||||
- 'setup.py'
|
|
||||||
- 'pyproject.toml'
|
|
||||||
- 'requirements.txt'
|
|
||||||
- 'cmake/**'
|
|
||||||
- 'CMakeLists.txt'
|
|
||||||
- 'csrc/**'
|
|
||||||
|
|
||||||
workflow_dispatch:
|
|
||||||
# only cancel in-progress runs of the same workflow
|
|
||||||
concurrency:
|
|
||||||
group: ${{ github.workflow }}-${{ github.ref }}
|
|
||||||
cancel-in-progress: true
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
image_build:
|
image_build:
|
||||||
if: ${{ github.event_name == 'push' || (contains(github.event.pull_request.labels.*.name, 'ready') && contains(github.event.pull_request.labels.*.name, 'ready-for-test')) }}
|
|
||||||
name: Image Build and Push
|
name: Image Build and Push
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
@@ -77,11 +40,11 @@ jobs:
|
|||||||
# dockerfile: Dockerfile.310p
|
# dockerfile: Dockerfile.310p
|
||||||
# - name: 310P openEuler
|
# - name: 310P openEuler
|
||||||
# dockerfile: Dockerfile.310p.openEuler
|
# dockerfile: Dockerfile.310p.openEuler
|
||||||
uses: ./.github/workflows/_pr_image_build.yaml
|
uses: ./.github/workflows/_schedule_image_build.yaml
|
||||||
with:
|
with:
|
||||||
dockerfile: ${{ matrix.build_meta.dockerfile }}
|
dockerfile: ${{ matrix.build_meta.dockerfile }}
|
||||||
suffix: ${{ matrix.build_meta.suffix }}
|
suffix: ${{ matrix.build_meta.suffix }}
|
||||||
quay_username: ${{ vars.QUAY_USERNAME }}
|
quay_username: ${{ vars.QUAY_USERNAME }}
|
||||||
should_push: ${{ github.event_name == 'push' && github.repository_owner == 'vllm-project' }}
|
should_push: ${{ github.repository_owner == 'vllm-project' }}
|
||||||
secrets:
|
secrets:
|
||||||
QUAY_PASSWORD: ${{ secrets.QUAY_PASSWORD }}
|
QUAY_PASSWORD: ${{ secrets.QUAY_PASSWORD }}
|
||||||
@@ -18,26 +18,12 @@
|
|||||||
name: Release Code and Wheel
|
name: Release Code and Wheel
|
||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request:
|
schedule:
|
||||||
branches:
|
- cron: '0 */2 * * *'
|
||||||
- 'main'
|
|
||||||
- '*-dev'
|
|
||||||
paths:
|
|
||||||
- '.github/workflows/pr_tag_release_code_and_wheel.yaml'
|
|
||||||
- 'vllm_ascend/**'
|
|
||||||
- 'setup.py'
|
|
||||||
- 'pyproject.toml'
|
|
||||||
- 'requirements.txt'
|
|
||||||
- 'cmake/**'
|
|
||||||
- 'CMakeLists.txt'
|
|
||||||
- 'csrc/**'
|
|
||||||
push:
|
push:
|
||||||
tags:
|
tags:
|
||||||
- 'v*'
|
- 'v*'
|
||||||
|
workflow_dispatch:
|
||||||
concurrency:
|
|
||||||
group: ${{ github.workflow }}-${{ github.ref }}
|
|
||||||
cancel-in-progress: true
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build_and_release_code:
|
build_and_release_code:
|
||||||
@@ -76,7 +62,7 @@ jobs:
|
|||||||
path: dist/*
|
path: dist/*
|
||||||
|
|
||||||
- name: Release
|
- name: Release
|
||||||
if: startsWith(github.ref, 'refs/tags/')
|
if: ${{ github.event_name == 'push' }}
|
||||||
run: |
|
run: |
|
||||||
python3 -m twine upload dist/* -u __token__ -p ${{ secrets.PYPI_TOKEN }}
|
python3 -m twine upload dist/* -u __token__ -p ${{ secrets.PYPI_TOKEN }}
|
||||||
|
|
||||||
@@ -85,11 +71,8 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-24.04, ubuntu-24.04-arm]
|
os: [ubuntu-24.04, ubuntu-24.04-arm]
|
||||||
# PR only trigger latest version
|
python-version: ["3.10", "3.11"]
|
||||||
python-version: ${{ fromJSON(
|
|
||||||
(github.event_name == 'pull_request' && '["3.11"]') ||
|
|
||||||
'["3.10", "3.11"]'
|
|
||||||
) }}
|
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v4.2.2
|
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v4.2.2
|
||||||
@@ -114,11 +97,10 @@ jobs:
|
|||||||
ls dist
|
ls dist
|
||||||
|
|
||||||
- name: Set up Python ${{ matrix.python-version }}
|
- name: Set up Python ${{ matrix.python-version }}
|
||||||
if: startsWith(github.ref, 'refs/tags/')
|
|
||||||
uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0
|
uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0
|
||||||
with:
|
with:
|
||||||
python-version: ${{ matrix.python-version }}
|
python-version: ${{ matrix.python-version }}
|
||||||
|
|
||||||
- name: Repair wheels with auditwheel
|
- name: Repair wheels with auditwheel
|
||||||
run: |
|
run: |
|
||||||
python3 -m pip install auditwheel
|
python3 -m pip install auditwheel
|
||||||
@@ -161,7 +143,7 @@ jobs:
|
|||||||
path: dist/*
|
path: dist/*
|
||||||
|
|
||||||
- name: Release
|
- name: Release
|
||||||
if: startsWith(github.ref, 'refs/tags/')
|
if: ${{ github.event_name == 'push' }}
|
||||||
run: |
|
run: |
|
||||||
python3 -m pip install twine
|
python3 -m pip install twine
|
||||||
python3 -m twine upload --verbose dist/* -u __token__ -p ${{ secrets.PYPI_TOKEN }}
|
python3 -m twine upload --verbose dist/* -u __token__ -p ${{ secrets.PYPI_TOKEN }}
|
||||||
Reference in New Issue
Block a user