Skip to content

Add type checking

Add type checking #10

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
uses: actions/setup-python@v5

Check failure on line 35 in .github/workflows/typing.yml

View workflow run for this annotation

GitHub Actions / Typing

Invalid workflow file

The workflow is not valid. .github/workflows/typing.yml (Line: 35, Col: 9): 'uses' is already defined
with:
python-version: 3.12
- name: Install pyenv
run: |
pip install pyenv
- name: Install python
run: |
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