]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Move pre-commit check to indent.yml file.
authorMarc Fehling <mafehling.git@gmail.com>
Wed, 12 Feb 2025 11:08:30 +0000 (12:08 +0100)
committerMarc Fehling <mafehling.git@gmail.com>
Mon, 17 Feb 2025 14:44:46 +0000 (15:44 +0100)
.github/workflows/indent.yml
.github/workflows/pre-commit.yml [deleted file]

index ec8d203abc9e34979f2725505abbad7060d3fc3f..faedc97ee712259ecfa797e5170cd97af8bae37d 100644 (file)
@@ -9,9 +9,6 @@ concurrency:
 permissions:
   contents: read
 
-env:
-  MAKEFLAGS: "--jobs=4"
-
 jobs:
   indent:
     # run the indent checks
@@ -36,6 +33,9 @@ jobs:
     name: doxygen
     runs-on: ubuntu-24.04
 
+    env:
+      MAKEFLAGS: "--jobs=4"
+
     steps:
     - name: setup
       run: |
@@ -68,3 +68,18 @@ jobs:
       with:
         name: doxygen_documentation
         path: build/doc/doxygen
+
+  pre-commit:
+    # run pre-commit checks
+
+    name: pre-commit
+    runs-on: ubuntu-24.04
+
+    env:
+      SKIP: clang-format, no-commit-to-branch
+
+    steps:
+    - uses: actions/checkout@v4
+    - uses: actions/setup-python@v5
+    - run:  python -m pip install networkx
+    - uses: pre-commit/action@v3.0.1
diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml
deleted file mode 100644 (file)
index 02028cc..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-name: pre-commit
-
-on: [push, pull_request]
-concurrency:
-  group: ${{ github.event_name }}-${{ github.workflow }}-${{ github.ref }}
-  cancel-in-progress: ${{github.event_name == 'pull_request'}}
-permissions:
-  contents: read
-
-env:
-  SKIP: clang-format, no-commit-to-branch
-
-jobs:
-  pre-commit:
-    runs-on: ubuntu-24.04
-    steps:
-    - uses: actions/checkout@v4
-    - uses: actions/setup-python@v5
-    - run:  python -m pip install networkx
-    - uses: pre-commit/action@v3.0.1

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.