From fb675de30dfc3f79290fa8ebb19168d753579972 Mon Sep 17 00:00:00 2001 From: Diogo Date: Tue, 12 Dec 2023 03:23:33 -0500 Subject: [PATCH] Run lint check for prs (#139) --- .github/workflows/pull_request.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/pull_request.yml diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml new file mode 100644 index 000000000..cffd7c51a --- /dev/null +++ b/.github/workflows/pull_request.yml @@ -0,0 +1,20 @@ +on: + pull_request: + branches: + - main + +jobs: + check_lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v4 + with: + python-version: 3.8 + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install pre-commit black isort clang-format + - name: Run lint + run: | + pre-commit run --all-files \ No newline at end of file