From 50074bf4a6a3f7c4a9505f73a79e40a61d4fc132 Mon Sep 17 00:00:00 2001 From: Etchegoyen Matthieu Date: Tue, 12 Dec 2023 16:57:05 +0100 Subject: [PATCH] adds a new gh-action to run precommit --- .github/workflows/lint.yaml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/lint.yaml diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml new file mode 100644 index 000000000..f7734fdb2 --- /dev/null +++ b/.github/workflows/lint.yaml @@ -0,0 +1,26 @@ +name: Lint + +on: + pull_request: + push: + branches: + - master + +jobs: + lint: + name: Run linters + runs-on: ubuntu-latest + steps: + - name: Check out the repository + uses: actions/checkout@v4 + + - name: Setup Python + uses: actions/setup-python@v4 + with: + python-version: 3.10.8 + + - name: Setup Pre-commit + uses: pre-commit/action@v3.0.0 + + - uses: pre-commit-ci/lite-action@v1.0.1 + if: always()