CI: update image build logic #41
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" | |
on: | |
pull_request: | |
branches: | |
- '**' | |
push: | |
branches: | |
- '**' | |
jobs: | |
lint: | |
runs-on: ubuntu-22.04 | |
strategy: | |
matrix: | |
python-version: ['3.8', '3.9', '3.10', '3.11'] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v3 | |
with: | |
python-version: ${{ matrix.python-version }} | |
architecture: x64 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install flake8==5.0.4 flake8-import-order==0.18.1 darglint==1.8.1 codespell mypy types-requests | |
- name: Lint with flake8 | |
run: | | |
flake8 --statistics | |
- name: Check static typing | |
run: | | |
mypy yoda_web_mock --explicit-package-bases | |
- name: Check code for common misspellings | |
run: | | |
codespell -q 3 --skip="*.r,*.xsd,*.json" || true | |
- name: Check McCabe complexity | |
run: | | |
flake8 --max-complexity 10 || true |