Skip to content

Merge pull request #236 from faucetsdn/dependabot/github_actions/pypa… #687

Merge pull request #236 from faucetsdn/dependabot/github_actions/pypa…

Merge pull request #236 from faucetsdn/dependabot/github_actions/pypa… #687

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@v5
with:
python-version: ${{ env.CODECHECK_PY_VER }}
- name: Install dependencies
run: |
pip3 install --upgrade -r "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@v5
with:
python-version: ${{ env.CODECHECK_PY_VER }}
- name: Install dependencies
run: |
pip3 install --upgrade -r "codecheck-requirements.txt"
- name: Run pytype
run: |
PYTHONPATH=. pytype --config setup.cfg beka