Docker build for python12 #21
Workflow file for this run
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
on: [ push ] | |
name: Lint Python and Format | |
jobs: | |
mypy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.12' | |
- run: python -m pip install mypy diopter pytest | |
- name: run mypy | |
run: python -m mypy --strict | |
black: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.12' | |
- run: python -m pip install black | |
- name: Check formating with black | |
run: python -m black --check python_src/ | |
flake8: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.12' | |
- run: python -m pip install . flake8 | |
- name: run flake8 | |
run: python -m flake8 python_src | |
isort: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.12' | |
- run: python -m pip install isort | |
- name: Check imports with isort | |
run: python -m isort --profile black --check python_src |