name: Tests on: pull_request: push: branches: - main permissions: contents: read jobs: test: name: Python ${{ matrix.python-version }} runs-on: ubuntu-latest strategy: fail-fast: false matrix: python-version: ["3.11", "3.13"] steps: - name: Check out code uses: actions/checkout@v4 - name: Set up Python uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - name: Install test dependencies run: | python -m pip install --index-url https://download.pytorch.org/whl/cpu torch torchaudio python -m pip install pytest ruff - name: Lint run: ruff check . - name: Test run: python -m pytest -q