mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-09-12 04:44:52 +00:00
Add support for manually triggering a release build
This commit is contained in:
parent
9895e8db99
commit
d9c7f69888
7
.github/workflows/build.yaml
vendored
7
.github/workflows/build.yaml
vendored
@ -11,6 +11,11 @@ on:
|
|||||||
# - rocm
|
# - rocm
|
||||||
# - intel
|
# - intel
|
||||||
required: true
|
required: true
|
||||||
|
release-tests:
|
||||||
|
description: "Run release integration tests"
|
||||||
|
required: true
|
||||||
|
default: false
|
||||||
|
type: boolean
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-and-push:
|
build-and-push:
|
||||||
@ -160,7 +165,7 @@ jobs:
|
|||||||
runs-on: ["self-hosted", "${{ needs.build-and-push.outputs.runs_on }}", "multi-gpu"]
|
runs-on: ["self-hosted", "${{ needs.build-and-push.outputs.runs_on }}", "multi-gpu"]
|
||||||
if: needs.build-and-push.outputs.runs_on != 'ubuntu-latest'
|
if: needs.build-and-push.outputs.runs_on != 'ubuntu-latest'
|
||||||
env:
|
env:
|
||||||
PYTEST_FLAGS: ${{ (startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/main') && '--release' || '' }}
|
PYTEST_FLAGS: ${{ (startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/main' || inputs.release-tests == 'true') && '--release' || '' }}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
11
.github/workflows/ci_build.yaml
vendored
11
.github/workflows/ci_build.yaml
vendored
@ -20,7 +20,14 @@ on:
|
|||||||
- "Dockerfile_amd"
|
- "Dockerfile_amd"
|
||||||
- "Dockerfile_intel"
|
- "Dockerfile_intel"
|
||||||
branches:
|
branches:
|
||||||
- 'main'
|
- "main"
|
||||||
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
release-tests:
|
||||||
|
description: "Run release integration tests"
|
||||||
|
required: true
|
||||||
|
default: false
|
||||||
|
type: boolean
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
@ -33,4 +40,6 @@ jobs:
|
|||||||
uses: ./.github/workflows/build.yaml # calls the one above ^
|
uses: ./.github/workflows/build.yaml # calls the one above ^
|
||||||
with:
|
with:
|
||||||
hardware: ${{ matrix.hardware }}
|
hardware: ${{ matrix.hardware }}
|
||||||
|
# https://github.com/actions/runner/issues/2206
|
||||||
|
release-tests: ${{ inputs.release-tests == true }}
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
|
Loading…
Reference in New Issue
Block a user