Skip to content

Commit

Permalink
feat: add a style checking CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
paquiteau committed Feb 14, 2024
1 parent e28d3db commit 015b78a
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/style.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Style checking

on:
push:
branches: [ "master", "main", "develop" ]
pull_request:
branches: [ "master", "main", "develop" ]

workflow_dispatch:

env:
PYTHON_VERSION: "3.10"

jobs:
linter-check:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Python ${{ env.PYTHON_VERSION }}
uses: actions/setup-python@v4
with:
python-version: ${{ env.PYTHON_VERSION }}
cache: pip

- name: Install Python deps
shell: bash
run: |
python -m pip install --upgrade pip
python -m pip install -e .[test,dev]
- name: Black Check
shell: bash
run: black . --diff --color --check

- name: ruff Check
shell: bash
run: ruff check

0 comments on commit 015b78a

Please sign in to comment.