Skip to content

chore: ci-workflow #335

chore: ci-workflow

chore: ci-workflow #335

name: Coding style
on:
push:
branches: [main, release]
pull_request:
jobs:
black:
name: Coding style - black
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Run black
uses: psf/black@stable
flake8:
name: Coding style - flake8
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.11
- name: Install dependencies
run: pip install flake8 pep8-naming flake8-bugbear
- name: Run flake8
uses: liskin/gh-problem-matcher-wrap@v1
with:
linters: flake8
run: flake8
isort:
name: Coding style - isort
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.11
- name: Install dependencies
run: pip install isort
- name: Run isort
uses: liskin/gh-problem-matcher-wrap@v1
with:
linters: isort
run: isort -c .
commitlint:
name: Commit lint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Check commitlint
uses: wagoid/commitlint-github-action@0d749a1a91d4770e983a7b8f83d4a3f0e7e0874e