Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
71 changes: 55 additions & 16 deletions .github/workflows/static_analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,12 @@ on:
- main
- devel

defaults:
run:
shell: bash

jobs:
static-analysis:
cloc:
runs-on: ubuntu-latest
steps:
- name: Checkout the code
Expand All @@ -24,39 +28,74 @@ jobs:
./cloc --version
./cloc $(git ls-files)

black:
runs-on: ubuntu-latest
steps:
- name: Checkout the code
uses: actions/checkout@v4

- name: Code formatting with black
run: |
pip install black
pip install "black[jupyter]"
pip install black "black[jupyter]"
black --check src/
black --check tutorials/

isort:
runs-on: ubuntu-latest
steps:
- name: Checkout the code
uses: actions/checkout@v4

- name: Code formatting with isort
run: |
pip install isort
isort --check src/
isort --check tutorials/

- name: Code formatting with mypy
continue-on-error: true
mypy:
runs-on: ubuntu-latest
continue-on-error: true
steps:
- name: Checkout the code
uses: actions/checkout@v4

- name: Type checking with mypy
run: |
pip install mypy
mypy src/
mypy src/ || true

- name: Code formatting with prospector
continue-on-error: true
prospector:
runs-on: ubuntu-latest
continue-on-error: true
steps:
- name: Checkout the code
uses: actions/checkout@v4

- name: Code analysis with prospector
run: |
pip install prospector
prospector src/

- name: Code formatting with ruff
continue-on-error: true
prospector src/ || true

ruff:
runs-on: ubuntu-latest
continue-on-error: true
steps:
- name: Checkout the code
uses: actions/checkout@v4

- name: Linting with ruff
run: |
pip install ruff
ruff check src/
ruff check src/ || true

pylint:
runs-on: ubuntu-latest
continue-on-error: true
steps:
- name: Checkout the code
uses: actions/checkout@v4

- name: Code formatting with pylint
continue-on-error: true
- name: Linting with pylint
run: |
pip install pylint
pylint src/
pylint src/ || true