petals/.github/workflows/check-style.yaml

27 lines
517 B
YAML
Raw Normal View History

name: Check style
on:
push:
branches: [ main ]
pull_request:
jobs:
black:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: psf/black@stable
with:
options: "--check --diff"
version: "22.3.0"
isort:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
2023-03-29 00:41:07 +00:00
- uses: actions/setup-python@v3
with:
python-version: 3.8
- uses: isort/isort-action@master
with:
isortVersion: "5.10.1"