From a0b5043c6b6ee779946fc36991a6b28660eb79f6 Mon Sep 17 00:00:00 2001 From: Tom Parker-Shemilt Date: Tue, 2 Apr 2024 17:41:30 +0100 Subject: [PATCH] Add pre-commit CI --- .github/workflows/pre-commit.yaml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/pre-commit.yaml diff --git a/.github/workflows/pre-commit.yaml b/.github/workflows/pre-commit.yaml new file mode 100644 index 0000000..3c80194 --- /dev/null +++ b/.github/workflows/pre-commit.yaml @@ -0,0 +1,22 @@ +--- +name: pre-commit + +on: + push: + branches: + - main + pull_request: + +jobs: + pre-commit: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: '3.12' + - name: Install dependencies + run: ./uv pip install --system -r requirements.test + - name: pre-commit + run: pre-commit run -a