From d5dd3793160d606c92f5077bff8f167e2359e82c Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Wed, 10 Nov 2021 06:30:58 +0100 Subject: [PATCH 1/2] GitHub Action to run pre-commit --- .github/workflows/pre-commit.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 .github/workflows/pre-commit.yml diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml new file mode 100644 index 00000000000..93ae768f169 --- /dev/null +++ b/.github/workflows/pre-commit.yml @@ -0,0 +1,13 @@ +# https://github.com/pre-commit/action +name: pre-commit +on: + pull_request: + push: + branches: [master] +jobs: + pre-commit: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-python@v2 + - uses: pre-commit/action@v2.0.3 From 1adaabd5e599aed2a2c571dbbcce714d26c54a49 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Fri, 12 Nov 2021 02:13:28 +0100 Subject: [PATCH 2/2] Downgrade to Python 3.9 --- .github/workflows/pre-commit.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index 93ae768f169..b577965b73b 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -10,4 +10,6 @@ jobs: steps: - uses: actions/checkout@v2 - uses: actions/setup-python@v2 + with: + python-version: 3.9 - uses: pre-commit/action@v2.0.3