YDA-5059: add hierarchical keyword selector #3715
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: "Python lint and unit/integration tests" | |
on: [push, pull_request] | |
jobs: | |
lint: | |
runs-on: ubuntu-24.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.12 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install flake8==7.1.1 flake8-import-order==0.18.2 darglint==1.8.1 codespell | |
python -m pip install mypy types-requests werkzeug | |
- name: Lint with flake8 | |
run: | | |
flake8 --statistics | |
- name: Check static typing | |
run: | | |
mypy . --explicit-package-bases | |
- name: Run unit and integration tests | |
run: | | |
sudo apt -y install apache2-dev | |
python -m pip install -r requirements.txt | |
cd unit-tests | |
python -m unittest | |
- name: Check code for common misspellings | |
run: | | |
codespell -q 3 --skip="*.css,*.r,*.xsd,*.json,*.map,*.js" || true | |
- name: Check McCabe complexity | |
run: | | |
flake8 --max-complexity 10 || true |