name: Python Checks on: push: branches: - dtk pull_request: branches: - dtk workflow_dispatch: jobs: checks: name: Python format, lint, and unit test runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v4 - name: Set up Python uses: actions/setup-python@v5 with: python-version: '3.11' - name: Install dependencies run: | python -m pip install --upgrade pip python -m pip install -e .[test] - name: Check formatting run: | python -m yapf --diff --recursive superbench tests - name: Lint run: | python -m flake8 superbench tests python -m mypy superbench tests - name: Run runner unit tests run: | python -m pytest tests/runner/test_runner.py -v