Skip to content

Add type checking

Add type checking #12

Workflow file for this run

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: |
export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"
pyenv install 3.6
pyenv global 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