name: tests on: push: pull_request: permissions: contents: read jobs: test: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 with: python-version: "3.11" cache: pip - name: Install test dependencies run: | python -m pip install --upgrade pip python -m pip install --index-url https://download.pytorch.org/whl/cpu torch python -m pip install -r requirements.txt pytest - name: Compile Python run: python -m compileall -q . - name: Run tests run: python -m pytest -q -p no:cacheprovider