SuperOptiX Harness #77
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| permissions: | |
| contents: read | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ["3.11", "3.12"] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Set up uv | |
| uses: astral-sh/setup-uv@v1 | |
| with: | |
| version: "latest" | |
| - name: Install dependencies | |
| run: uv sync --frozen --extra dev --extra testing --extra turboagents | |
| - name: Run Ruff | |
| run: | | |
| uv run --no-sync ruff check . | |
| uv run --no-sync ruff format --check . | |
| - name: Run tests | |
| run: | | |
| PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 uv run --no-sync pytest -p pytest_asyncio.plugin tests/ | |
| - name: Run type checking | |
| run: | | |
| uv run --no-sync mypy superoptix/ --no-error-summary || echo "Type checking completed with warnings" | |