Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 48 additions & 6 deletions .github/workflows/cicd-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,13 @@ jobs:
echo "key=$KEY" | tee -a "$GITHUB_OUTPUT"
echo "cache-to=type=registry,ref=${REGISTRY}/export-deploy:${KEY}-buildcache,mode=max" | tee -a "$GITHUB_OUTPUT"

- name: Generate GitHub App token
id: app-token
uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0
with:
app-id: ${{ vars.BOT_ID }}
private-key: ${{ secrets.BOT_KEY }}

- name: Build and push
uses: docker/build-push-action@ca052bb54ab0790a636c9b5f226502c73d547a25 # v5
with:
Expand All @@ -142,7 +149,7 @@ jobs:
tags: |
${{ needs.pre-flight.outputs.registry }}/export-deploy:${{ github.sha }}
secrets: |
GH_TOKEN=${{ secrets.PAT }}
GH_TOKEN=${{ steps.app-token.outputs.token }}

cicd-unit-tests-vllm:
strategy:
Expand All @@ -168,14 +175,21 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6
- name: Generate GitHub App token
id: app-token
uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0
with:
app-id: ${{ vars.BOT_ID }}
private-key: ${{ secrets.BOT_KEY }}

- name: main
uses: ./.github/actions/test-template
with:
script: ${{ matrix.script }}
timeout: 60
is_unit_test: "true"
cpu-only: ${{ matrix.cpu-only || false }}
PAT: ${{ secrets.PAT }}
PAT: ${{ steps.app-token.outputs.token }}
container-image: ${{ needs.pre-flight.outputs.registry }}/export-deploy:${{ github.sha }}
inference-framework: vllm
test-data-path: ${{ needs.pre-flight.outputs.test_data_path }}
Expand All @@ -198,14 +212,21 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6
- name: Generate GitHub App token
id: app-token
uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0
with:
app-id: ${{ vars.BOT_ID }}
private-key: ${{ secrets.BOT_KEY }}

- name: main
uses: ./.github/actions/test-template
with:
script: L2_ONNX_TRT
is_optional: ${{ matrix.is_optional || false }}
is_unit_test: "false"
timeout: 60
PAT: ${{ secrets.PAT }}
PAT: ${{ steps.app-token.outputs.token }}
container-image: ${{ needs.pre-flight.outputs.registry }}/export-deploy:${{ github.sha }}
inference-framework: trt-onnx
test-data-path: ${{ needs.pre-flight.outputs.test_data_path }}
Expand All @@ -226,14 +247,21 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6
- name: Generate GitHub App token
id: app-token
uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0
with:
app-id: ${{ vars.BOT_ID }}
private-key: ${{ secrets.BOT_KEY }}

- name: main
uses: ./.github/actions/test-template
with:
script: L2_Launch_vLLM
is_optional: ${{ matrix.is_optional || false }}
is_unit_test: "false"
timeout: 60
PAT: ${{ secrets.PAT }}
PAT: ${{ steps.app-token.outputs.token }}
container-image: ${{ needs.pre-flight.outputs.registry }}/export-deploy:${{ github.sha }}
inference-framework: vllm
test-data-path: ${{ needs.pre-flight.outputs.test_data_path }}
Expand All @@ -254,14 +282,21 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6
- name: Generate GitHub App token
id: app-token
uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0
with:
app-id: ${{ vars.BOT_ID }}
private-key: ${{ secrets.BOT_KEY }}

- name: main
uses: ./.github/actions/test-template
with:
script: L2_Launch_InFramework
is_optional: ${{ matrix.is_optional || false }}
is_unit_test: "false"
timeout: 60
PAT: ${{ secrets.PAT }}
PAT: ${{ steps.app-token.outputs.token }}
container-image: ${{ needs.pre-flight.outputs.registry }}/export-deploy:${{ github.sha }}
inference-framework: inframework
test-data-path: ${{ needs.pre-flight.outputs.test_data_path }}
Expand Down Expand Up @@ -319,10 +354,17 @@ jobs:
&& !cancelled()
environment: nemo-ci
steps:
- name: Generate GitHub App token
id: app-token
uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0
with:
app-id: ${{ vars.BOT_ID }}
private-key: ${{ secrets.BOT_KEY }}

- name: Generate fake coverage report
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8
with:
github-token: ${{ secrets.PAT }}
github-token: ${{ steps.app-token.outputs.token }}
script: |
await github.rest.repos.createCommitStatus({
owner: context.repo.owner,
Expand Down
Loading