Skip to content

Weekly test all examples on multiple HWs #45

Weekly test all examples on multiple HWs

Weekly test all examples on multiple HWs #45

# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
name: Weekly test all examples on multiple HWs
permissions:
contents: read
id-token: write
on:
schedule:
- cron: "30 2 * * 6" # UTC time
workflow_dispatch:
env:
EXAMPLES: "CodeGen,CodeTrans" #${{ vars.NIGHTLY_RELEASE_EXAMPLES }}
NODES: "gaudi,xeon,arc"
jobs:
get-test-matrix:
runs-on: ubuntu-latest
outputs:
examples: ${{ steps.get-matrix.outputs.examples }}
nodes: ${{ steps.get-matrix.outputs.nodes }}
steps:
- name: Create Matrix
id: get-matrix
run: |
examples=($(echo ${EXAMPLES} | tr ',' ' '))
examples_json=$(printf '%s\n' "${examples[@]}" | sort -u | jq -R '.' | jq -sc '.')
echo "examples=$examples_json" >> $GITHUB_OUTPUT
nodes=($(echo ${NODES} | tr ',' ' '))
nodes_json=$(printf '%s\n' "${nodes[@]}" | sort -u | jq -R '.' | jq -sc '.')
echo "nodes=$nodes_json" >> $GITHUB_OUTPUT
build-comps-base:
needs: [get-test-matrix]
permissions:
attestations: read
models: read
security-events: read
uses: ./.github/workflows/_build_comps_base_image.yml
with:
node: gaudi
run-examples:

Check failure on line 46 in .github/workflows/weekly-example-test.yml

View workflow run for this annotation

GitHub Actions / Weekly test all examples on multiple HWs

Invalid workflow file

The workflow is not valid. .github/workflows/weekly-example-test.yml (Line: 46, Col: 3): Error calling workflow 'opea-project/GenAIExamples/.github/workflows/_example-workflow.yml@014eb2103b9b588e2ccbb90a8f1759f2a44abb5a'. The workflow is requesting 'security-events: read', but is only allowed 'security-events: none'. .github/workflows/weekly-example-test.yml (Line: 46, Col: 3): Error calling workflow 'opea-project/GenAIExamples/.github/workflows/_example-workflow.yml@014eb2103b9b588e2ccbb90a8f1759f2a44abb5a'. The nested job 'build-images' is requesting 'checks: read, security-events: read', but is only allowed 'checks: none, security-events: none'.
permissions:
contents: read
id-token: write
actions: read
attestations: read
discussions: read
issues: write
models: read
pages: write
pull-requests: write
repository-projects: read
needs: [get-test-matrix, build-comps-base]
strategy:
matrix:
example: ${{ fromJson(needs.get-test-matrix.outputs.examples) }}
node: ${{ fromJson(needs.get-test-matrix.outputs.nodes) }}
fail-fast: false
uses: ./.github/workflows/_example-workflow.yml
with:
node: ${{ matrix.node }}
example: ${{ matrix.example }}
build: true
test_compose: true
test_helmchart: true
secrets: inherit