Skip to content

add github actions for mypy check controller/gateway #1

add github actions for mypy check controller/gateway

add github actions for mypy check controller/gateway #1

name: "test-controller"
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test-codebase:
runs-on: ubuntu-latest
defaults:
run:
# Set working directory to the controller folder
working-directory: software/controller
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Set up Python 3.12.7
uses: actions/setup-python@v4
with:
python-version: "3.12.7"
- name: Remove existing virtual environment (if any)
run: rm -rf .venv
- name: Install Poetry
uses: snok/install-poetry@v1
with:
version: 1.8.2
virtualenvs-create: true
virtualenvs-in-project: true
installer-parallel: true
- name: Install dependencies
run: poetry install --with=dev
- name: Run static type analysis
run: poetry run mypy --explicit-package-bases .