feat: Added support for PyTorch Lightning in the DDP backend. #473
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: pre-commit | |
# This will prevent multiple runs of the same workflow from running concurrently | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
on: | |
# Trigger manually | |
workflow_dispatch: | |
# Trigger on any push to the master | |
push: | |
branches: | |
- master | |
# Trigger on any push to a PR that targets master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
run-all-files: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: install the latest version uv | |
uses: astral-sh/setup-uv@v5 | |
with: | |
python-version: '3.10' | |
version: latest | |
enable-cache: true | |
prune-cache: false | |
cache-dependency-glob: "**/pyproject.toml" | |
- name: install pre-commit hooks | |
run: uv run --all-extras pre-commit install | |
- name: Run pre-commit hooks | |
run: uv run --all-extras pre-commit run --all-files |