From ac5f6fcae91ee38ac6f9ac575fd60793c72d305d Mon Sep 17 00:00:00 2001 From: Felix Kaechele Date: Tue, 30 Apr 2024 21:20:25 -0400 Subject: [PATCH] ci: add pre-commit-ci-lite workflow for PRs Signed-off-by: Felix Kaechele --- .github/workflows/pr.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/pr.yml diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml new file mode 100644 index 0000000..a69b60a --- /dev/null +++ b/.github/workflows/pr.yml @@ -0,0 +1,23 @@ +name: Check Pull Requests + +on: + pull_request: + +jobs: + pr: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Setup Python 3.11 + uses: actions/setup-python@v5 + with: + python-version: "3.11" + + - name: Run pre-commit + uses: pre-commit/action@v3.0.1 + + - name: Autofix using pre-commit-ci-lite + uses: pre-commit-ci/lite-action@v1.0.2 + if: always()