Skip to content

Add GitHub Python workflow tests #7

Add GitHub Python workflow tests

Add GitHub Python workflow tests #7

Workflow file for this run

name: Python checks
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python: ["3.11"]
steps:
- uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
- name: Install virtual env and dependencies
run: |
python -m pip install --upgrade pip
python -m venv .venv
source ./.venv/bin/activate
pip install -r requirements.txt
- name: Type checks
run: |
python -m mypy *.py --check-untyped-defs
- name: Tests
run: |
python -m unittest discover .