Fix formatting in memory efficiency section of README #2
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] | |
| jobs: | |
| lint: | |
| name: Lint | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v4 | |
| with: | |
| version: "latest" | |
| - name: Set up Python | |
| run: uv python install 3.12 | |
| - name: Install pre-commit | |
| run: uv pip install pre-commit --system | |
| - name: Run pre-commit (selected hooks) | |
| run: | | |
| # Run only the fast, non-blocking hooks | |
| pre-commit run black --all-files || true | |
| pre-commit run isort --all-files || true | |
| pre-commit run ruff --all-files | |
| test: | |
| name: Test Python ${{ matrix.python-version }} | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: ["3.12", "3.13", "3.14"] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v4 | |
| with: | |
| version: "latest" | |
| - name: Set up Python ${{ matrix.python-version }} | |
| run: | | |
| uv python install ${{ matrix.python-version }} | |
| uv venv --python ${{ matrix.python-version }} .venv | |
| - name: Install dependencies | |
| run: | | |
| uv pip install pytest pytest-benchmark pytest-asyncio numpy --python .venv/bin/python | |
| - name: Run tests (no benchmarks) | |
| run: | | |
| .venv/bin/pytest benchmarks/ \ | |
| --benchmark-disable \ | |
| --ignore=benchmarks/pytorch/ \ | |
| -v \ | |
| --tb=short |