Skip to content

Continuous integration #2

Continuous integration

Continuous integration #2

Workflow file for this run

name: Continuous integration
on:
pull_request:
workflow_dispatch:
jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Run pre-commit hooks
uses: pre-commit/[email protected]
with:
extra_args: --all-files --config pre-commit.yml
pytest:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
- {python: "3.9", torch: "1.12"}

Check failure on line 24 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / Continuous integration

Invalid workflow file

The workflow is not valid. .github/workflows/ci.yml (Line: 24, Col: 9): A sequence was not expected
- {python: "3.10", torch: "2.0"}
- {python: "3.11", torch: "2.2"}
- {python: "3.12", torch: "2.4"}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
- name: Install dependencies
run: |
pip install pytest
pip install torch==${{ matrix.torch }} torchvision --extra-index-url https://download.pytorch.org/whl/cpu
pip install .
- name: Run tests
run: pytest tests