Browse Source

merge config files for github actions

Fabian Peter Hammerle 3 years ago
parent
commit
96be14ae2b
2 changed files with 14 additions and 15 deletions
  1. 0 15
      .github/workflows/code-format.yml
  2. 14 0
      .github/workflows/python.yml

+ 0 - 15
.github/workflows/code-format.yml

@@ -1,15 +0,0 @@
-on:
-  push:
-  pull_request:
-
-jobs:
-  build:
-    runs-on: ubuntu-18.04
-    steps:
-    - uses: actions/checkout@v1
-    - uses: actions/setup-python@v1
-      with:
-        python-version: 3.7
-    - run: pip install black==19.10b0
-    - run: pip freeze
-    - run: black --check .

+ 14 - 0
.github/workflows/python.yml

@@ -13,6 +13,20 @@ on:
   - cron: '0 20 * * 5'
 
 jobs:
+  code-format:
+    runs-on: ubuntu-18.04
+    strategy:
+      matrix:
+        python-version:
+        - 3.8
+    steps:
+    - uses: actions/checkout@v1
+    - uses: actions/setup-python@v1
+      with:
+        python-version: ${{ matrix.python-version }}
+    - run: pip install black==19.10b0
+    - run: pip freeze
+    - run: black --check .
   tests:
     runs-on: ubuntu-18.04
     strategy: