Pārlūkot izejas kodu

added github action to check code format with black

Fabian Peter Hammerle 4 gadi atpakaļ
vecāks
revīzija
123fc99a01
1 mainītis faili ar 16 papildinājumiem un 0 dzēšanām
  1. 16 0
      .github/workflows/code-format.yml

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

@@ -0,0 +1,16 @@
+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 --upgrade pipenv>=2018.10.9
+    - run: pipenv install --deploy --dev
+    - run: pipenv graph
+    - run: pipenv run black --check .