Add type checking #9
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: Typing | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
workflow_call: | |
env: | |
UV_SYSTEM_PYTHON: 1 | |
jobs: | |
type-check: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.12 | |
- name: Install dependencies | |
run: | | |
pip install -U pip | |
pip install . | |
pip install mypy | |
- name: Run mypy | |
run: | | |
mypy komodoenv | |
type-check-update-script: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install pyenv | |
run: | | |
curl https://pyenv.run | bash | |
- name: Install python | |
run: | | |
pyenv install 3.6 | |
- name: Run mypy | |
run: | | |
python3.6 -m pip install -U pip | |
python3.6 -m pip install mypy | |
python3.6 -m mypy komodoenv --python-version 3.6 |