Skip to content

Commit

Permalink
Add style check workflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
bdice committed Mar 7, 2024
1 parent 823b74f commit d899ced
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: pr

on:
pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
check-style:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Check style
run: ./ci/check_style.sh
8 changes: 8 additions & 0 deletions ci/check_style.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash
# Copyright (c) 2024, NVIDIA CORPORATION.

set -euo pipefail

pip install pre-commit

pre-commit run --all-files --show-diff-on-failure

0 comments on commit d899ced

Please sign in to comment.