Debian Codegraph @

.github/workflows/pylint.yml

raw
1 name: Pylint
2
3 on:
4 push:
5 branches: [ master ]
6 pull_request:
7 branches: [ master ]
8
9 jobs:
10 build:
11
12 runs-on: ${{ matrix.os }}
13
14 strategy:
15 matrix:
16 os: [ ubuntu-latest, windows-latest ]
17 python-version: [ 3.9, '3.10', 3.11, 3.12 ]
18 exclude:
19 - os: windows-latest
20 python-version: 3.9
21
22 steps:
23 - uses: actions/checkout@v2
24 - name: Set up Python ${{ matrix.python-version }}
25 uses: actions/setup-python@v2
26 with:
27 python-version: ${{ matrix.python-version }}
28 - name: Install dependencies
29 run: |
30 python -m pip install --upgrade pip
31 pip install pylint
32 pip install -r requirements.txt
33 pip install -r development.txt
34 pip install ntc_templates==1.4.1
35 pip install textfsm==0.4.1
36 pip install .
37
38 - name: Run black tool
39 run: |
40 pip install -U black;
41 black --check --diff --exclude="docs|build|tests|samples" .
42
43 - name: Run unit tests
44 run: |
45 nose2 --with-coverage -vvv tests.unit