Skip to content

fix: resolve ruff lint and format errors for CI #8

fix: resolve ruff lint and format errors for CI

fix: resolve ruff lint and format errors for CI #8

Workflow file for this run

name: CI
on:
push:
branches: [master, main]
pull_request:
branches: [master, main]
permissions:
contents: read
jobs:
lint-and-test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "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: Install dependencies
run: |
python -m pip install --upgrade pip
pip install torch --index-url https://download.pytorch.org/whl/cpu
pip install -e ".[dev]"
- name: Lint with ruff
run: ruff check src/ tests/ scripts/
- name: Format check with ruff
run: ruff format --check src/ tests/ scripts/
- name: Run tests
run: pytest tests/ -v --tb=short -x