Skip to content

Commit 1a747e3

Browse files
author
ladyada
committed
install pylint, run pylint first, fix name of shellscript
1 parent 62eb10e commit 1a747e3

File tree

2 files changed

+40
-30
lines changed

2 files changed

+40
-30
lines changed

.github/workflows/githubci.yml

+39-30
Original file line numberDiff line numberDiff line change
@@ -3,38 +3,47 @@ name: Arduino Library CI
33
on: [pull_request, push, repository_dispatch]
44

55
jobs:
6-
build:
7-
strategy:
8-
fail-fast: false
9-
matrix:
10-
arduino-platform: ["uno", "cpx_ada", "pyportal"]
11-
6+
pylint:
127
runs-on: ubuntu-latest
13-
8+
# needs: build
149
steps:
15-
- uses: actions/setup-python@v1
16-
with:
17-
python-version: '3.x'
18-
- uses: actions/checkout@v2
19-
- uses: actions/checkout@v2
10+
- name: Set up Python 3.6
11+
uses: actions/setup-python@v1
2012
with:
21-
repository: adafruit/ci-arduino
22-
path: ci
23-
24-
- name: pre-install
25-
run: bash ci/actions_install.sh
26-
27-
- name: test platforms
28-
run: python3 ci/build_platform.py ${{ matrix.arduino-platform }}
29-
30-
python pylint:
31-
runs-on: ubuntu-latest
32-
needs: build
33-
steps:
34-
- uses: actions/setup-python@v1
35-
with:
36-
python-version: '3.x'
37-
- uses: actions/checkout@v2
13+
python-version: 3.6
14+
- name: Versions
15+
run: |
16+
python3 --version
17+
- name: Pip install pylint, black, & Sphinx
18+
run: |
19+
pip install --force-reinstall pylint==1.9.2
20+
- name: Checkout Current Repo
21+
uses: actions/checkout@v2
3822

3923
- name: lint
40-
run: ./pylint_check
24+
run: ./pylint_check.sh
25+
26+
# build:
27+
# strategy:
28+
# fail-fast: false
29+
# matrix:
30+
# arduino-platform: ["uno", "cpx_ada", "pyportal"]
31+
#
32+
# runs-on: ubuntu-latest
33+
#
34+
# steps:
35+
# - uses: actions/setup-python@v1
36+
# with:
37+
# python-version: '3.x'
38+
# - uses: actions/checkout@v2
39+
# - uses: actions/checkout@v2
40+
# with:
41+
# repository: adafruit/ci-arduino
42+
# path: ci
43+
#
44+
# - name: pre-install
45+
# run: bash ci/actions_install.sh
46+
#
47+
# - name: test platforms
48+
# run: python3 ci/build_platform.py ${{ matrix.arduino-platform }}
49+
#

pylint_check pylint_check.sh

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/bin/bash
22

33
PYLINT="`type -p pylint3 2>/dev/null || type -p pylint`"
4+
echo "Using pylint bin at $PYLINT"
45

56
function find_pyfiles() {
67
if [ $# -eq 0 ]; then set -- .; fi

0 commit comments

Comments
 (0)