Răsfoiți Sursa

github action: flake8 linter

Thomas Waldmann 4 ani în urmă
părinte
comite
ea3954072b
1 a modificat fișierele cu 25 adăugiri și 0 ștergeri
  1. 25 0
      .github/workflows/ci.yml

+ 25 - 0
.github/workflows/ci.yml

@@ -0,0 +1,25 @@
+name: CI
+
+on:
+  push:
+    branches: [ master ]
+  pull_request:
+    branches: [ master ]
+
+jobs:
+  build:
+
+    runs-on: ubuntu-latest
+
+    steps:
+    - uses: actions/checkout@v2
+    - name: Set up Python 3.8
+      uses: actions/setup-python@v2
+      with:
+        python-version: 3.8
+    - name: Install dependencies
+      run: |
+        pip install flake8
+    - name: Lint with flake8
+      run: |
+        flake8 src scripts conftest.py