Add TGI dashboard and integration #1002
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Validate dashboard templates and metadata | |
# Controls when the workflow will run | |
on: | |
# Triggers the workflow on push or pull request events but only for the "main" branch | |
push: | |
branches: [ "master" ] | |
paths: ["dashboards/**"] | |
pull_request: | |
branches: [ "master" ] | |
paths: ["dashboards/**"] | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | |
jobs: | |
# This workflow contains a single job called "build" | |
build: | |
# The type of runner that the job will run on | |
runs-on: ubuntu-latest | |
# Steps represent a sequence of tasks that will be executed as part of the job | |
steps: | |
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
- uses: actions/checkout@v3 | |
- name: Get changed files | |
id: changed-files | |
uses: tj-actions/changed-files@v41 | |
- name: checkout repo content | |
uses: actions/checkout@v2 # checkout the repository content to github runner. | |
- name: setup python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.8 #install the python needed | |
- name: Install dependencies | |
run: | | |
pip3 install pyyaml | |
pip install --upgrade google-cloud-monitoring | |
- name: execute py script # run file | |
run: | | |
echo "running validation on following files ${{ steps.changed-files.outputs.all_changed_files }}" | |
python3 scripts/dashboard/validate_dashboards_format.py ${{ steps.changed-files.outputs.all_changed_files }} |