-
Notifications
You must be signed in to change notification settings - Fork 17
44 lines (40 loc) · 1.15 KB
/
tests-codecheck.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Code health checks
on: [push, pull_request]
env:
CODECHECK_PY_VER: '3.10'
jobs:
pylint:
name: Pylint
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Set up python-${{ env.CODECHECK_PY_VER }}
uses: actions/setup-python@v4
with:
python-version: ${{ env.CODECHECK_PY_VER }}
- name: Install dependencies
run: |
./docker/pip_deps.sh --extra-requirements="codecheck-requirements.txt"
- name: Run pylint
run: |
./test/codecheck/pylint.sh
pytype:
name: Pytype
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.8, 3.9, '3.10']
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Set up python-${{ env.CODECHECK_PY_VER }}
uses: actions/setup-python@v4
with:
python-version: ${{ env.CODECHECK_PY_VER }}
- name: Install dependencies
run: |
./docker/pip_deps.sh --extra-requirements="codecheck-requirements.txt"
- name: Run pytype
run: |
PYTHONPATH=. pytype --config setup.cfg chewie