Merge pull request #192 from AppraiseDev/vilemz/upper-bound-annotatio… #576
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: "PythonCodeValidator" | |
on: [push, pull_request] | |
jobs: | |
formatting: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: [3.8, 3.9] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install requirements | |
run: | | |
pip install -r requirements-dev.txt | |
# a workaround to suppress pip errors about incompatible package versions | |
pip install astroid==2.9.1 | |
continue-on-error: true | |
- name: Python information | |
run: | | |
set -e | |
python3 --version | |
pip freeze | |
- name: Check formatting | |
run: make check-black | |
continue-on-error: true | |
- name: Check pylint | |
run: make check-pylint | |
continue-on-error: true | |
- name: Check mypy | |
run: make check-mypy | |
continue-on-error: true | |
- name: Check safety | |
run: make check-safety | |
continue-on-error: true |