Add CI linting using MyPy #1

Manually merged
MichaelBradley merged 3 commits from actions into main 2025-02-23 07:23:48 -05:00
Showing only changes of commit a4e68e34b0 - Show all commits

View file

@ -6,20 +6,16 @@ name: Lint
jobs:
lint:
name: MyPy
runs-on: docker
runs-on: ubuntu-22.04
steps:
- name: Checkout
- name: Checkout the code
uses: actions/checkout@v4
# TODO: Replace with working action
- name: Set up Python environment
run: |
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
python3 get-pip.py
python3 -m pip install virtualenv
python3 -m virtualenv venv
source venv/bin/activate
pip install -r requirements.txt
- name: Type-check
run: |
source venv/bin/activate
mypy *.py
- name: Set up the Python toolchain
uses: actions/setup-python@v5
with:
python-version: "3.13"
cache: pip
- name: Set up the Python environment
run: pip install -r requirements.txt
- name: Type-check the code
run: mypy *.py