name: Python tests on: push: branches: [ main, master ] pull_request: branches: [ main, master ] jobs: test-and-typecheck: runs-on: ubuntu-22.04 strategy: matrix: python-version: ["3.10", "3.11"] steps: - uses: actions/checkout@v4 - name: Set up Python uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - name: Install dependencies run: | python -m pip install --upgrade pip pip install -r requirements.txt pip install pytest pytest-asyncio mypy - name: Run pytest run: | python -m pytest -q - name: Run mypy (strict) run: | python -m mypy --config-file mypy.ini