Skip to content

ci: run pre commit in ci for code quality #1471

ci: run pre commit in ci for code quality

ci: run pre commit in ci for code quality #1471

Workflow file for this run

name: Code quality
on:
push:
branches:
- master
pull_request:
workflow_dispatch:
jobs:
code-quality:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: [3.7, "3.9"]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install solara
run: |
pip install -e ".[dev]"
- name: Run pre commit
run: |
pip install pre-commit
pre-commit run --all-files --show-diff-on-failure