You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@arrow.apache.org by li...@apache.org on 2022/06/07 19:31:01 UTC

[arrow-adbc] branch main updated: Fix pre-commit CI pipeline (#9)

This is an automated email from the ASF dual-hosted git repository.

lidavidm pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow-adbc.git


The following commit(s) were added to refs/heads/main by this push:
     new f473a47  Fix pre-commit CI pipeline (#9)
f473a47 is described below

commit f473a4729c60d72c4e2335870fed5bc182d1ec50
Author: David Li <li...@gmail.com>
AuthorDate: Tue Jun 7 15:30:58 2022 -0400

    Fix pre-commit CI pipeline (#9)
    
    * Fix pre-commit CI pipeline
    
    * Run pre-commit manually
    
    * Cache pre-commit environment
---
 .github/workflows/dev.yml | 23 +++++++++++++++--------
 1 file changed, 15 insertions(+), 8 deletions(-)

diff --git a/.github/workflows/dev.yml b/.github/workflows/dev.yml
index c9596ac..c2da120 100644
--- a/.github/workflows/dev.yml
+++ b/.github/workflows/dev.yml
@@ -29,11 +29,18 @@ jobs:
   pre-commit:
     name: "pre-commit"
     runs-on: ubuntu-latest
-  steps:
-    - uses: actions/checkout@v3
-      with:
-        fetch-depth: 0
-        persist-credentials: false
-    - uses: actions/setup-python@v2
-    - uses: pre-commit/action@v2.0.3
-    - uses: actions/checkout@v3
+    steps:
+      - uses: actions/checkout@v3
+        with:
+          fetch-depth: 0
+          persist-credentials: false
+      - uses: actions/setup-python@v2
+      - name: pre-commit (cache)
+        uses: actions/cache@v3
+        with:
+          path: ~/.cache/pre-commit
+          key: pre-commit-${{ hashFiles('.pre-commit-config.yaml') }}
+      - name: pre-commit (--all-files)
+        run: |
+          python -m pip install pre-commit
+          pre-commit run --show-diff-on-failure --color=always --all-files