mirror of
https://github.com/DifferentiableUniverseInitiative/JaxPM.git
synced 2025-02-22 17:47:11 +00:00
22 lines
490 B
YAML
22 lines
490 B
YAML
|
name: Code Formatting
|
||
|
|
||
|
on:
|
||
|
push:
|
||
|
branches: [ "main" ]
|
||
|
pull_request:
|
||
|
branches: [ "main" ]
|
||
|
|
||
|
jobs:
|
||
|
build:
|
||
|
runs-on: ubuntu-latest
|
||
|
steps:
|
||
|
- uses: actions/checkout@v4
|
||
|
- name: Set up Python ${{ matrix.python-version }}
|
||
|
uses: actions/setup-python@v3
|
||
|
- name: Install dependencies
|
||
|
run: |
|
||
|
python -m pip install --upgrade pip isort
|
||
|
python -m pip install pre-commit
|
||
|
- name: Run pre-commit
|
||
|
run: python -m pre_commit run --all-files
|