Skip to content

Merge branch 'main' of https://github.com/hertie-data-science-lab/tut… #25

Merge branch 'main' of https://github.com/hertie-data-science-lab/tut…

Merge branch 'main' of https://github.com/hertie-data-science-lab/tut… #25

Workflow file for this run

name: Linting
on:
push:
branches:
- main
pull_request:
branches:
- main
permissions:
contents: read
jobs:
lint:
name: Linting (Python ${{ matrix.python-version }})
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
python-version: ['3.11']
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python3 -m pip install --upgrade pip
pip install -e .[dev]
# Install PyTorch CPU-only version for CI
pip install torch torchvision --index-url https://download.pytorch.org/whl/cpu
- name: Linting with pre-commit
run: pre-commit run --all-files