]> Repositories - hackapet/Adafruit_Blinka.git/blobdiff - .github/workflows/build.yml
Merge pull request #556 from dhalbert/remove-circuitpython_typing
[hackapet/Adafruit_Blinka.git] / .github / workflows / build.yml
index 4be12a58a30975f48f36c9d1476ca374559bc9ca..0da2cc6c88f3118d577f90f6bfc9c7fc90122f82 100644 (file)
@@ -13,15 +13,15 @@ jobs:
     - name: Translate Repo Name For Build Tools filename_prefix
       id: repo-name
       run: echo ::set-output name=repo-name::Adafruit-Blinka
-    - name: Set up Python 3.6
+    - name: Set up Python 3.7
       uses: actions/setup-python@v1
       with:
-        python-version: 3.6
+        python-version: 3.7
     - name: Versions
       run: |
         python3 --version
     - name: Checkout Current Repo
-      uses: actions/checkout@v1
+      uses: actions/checkout@v2
       with:
         submodules: true
     - name: Checkout tools repo
@@ -35,15 +35,15 @@ jobs:
         source actions-ci/install.sh
     - name: Pip install pylint, black, & Sphinx
       run: |
-        pip install --force-reinstall pylint black==19.10b0 Sphinx sphinx-rtd-theme
+        pip install --force-reinstall pylint==2.7.1 black Sphinx sphinx-rtd-theme
     - name: Library version
       run: git describe --dirty --always --tags
     - name: Check formatting
       run: |
-        black --check --target-version=py35 .
+        black --check --target-version=py37 .
     - name: PyLint
       run: |
-        pylint src/**/*.py
+        pylint $( find src -name '*.py' )
         ([[ ! -d "examples" ]] || pylint --disable=missing-docstring,invalid-name,bad-whitespace $( find . -path "./examples/*.py" ))
     - name: Build docs
       working-directory: docs