Merge pull request #240 from faucetsdn/dependabot/github_actions/pypa… #699
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |