Skip to content

AmdSmiPlugin: AmdSmiTstData, XgmiMetrics + Cper #322

AmdSmiPlugin: AmdSmiTstData, XgmiMetrics + Cper

AmdSmiPlugin: AmdSmiTstData, XgmiMetrics + Cper #322

# workflow to validate code formatting using pre-commit hooks
name: Code Quality Check
permissions:
contents: read
on:
- pull_request
- workflow_dispatch
jobs:
pre-commit:
runs-on: [ self-hosted ]
container: python:3.9
steps:
- uses: actions/checkout@v3
- name: setup environment and run pre-commit hooks
shell: bash
run: |
source ./dev-setup.sh
pre-commit run --all-files --show-diff-on-failure --color=always
- name: Print message on failure
if: failure()
run: |
echo "### :x: Pre-commit hooks failed. Please check logs for changes needed" >> $GITHUB_STEP_SUMMARY