Merge remote-tracking branch 'origin/main' into fix/dockerhub-cd #263
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Static Code Analysis | |
on: push | |
jobs: | |
static-code-analysis: | |
name: Static Code Analysis | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
id: checkout | |
uses: actions/checkout@v4 | |
- name: Set up Python 3.12 | |
id: setup-python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.12 | |
- name: Run pre-commit | |
uses: pre-commit/action@v3.0.1 | |
env: | |
SKIP: no-commit-to-branch | |
- name: Update pip and install dependencies | |
id: install-dependencies | |
run: python -m pip install --upgrade pip && pip install --no-deps -r ./lock/requirements-dev.txt | |
- name: Run ruff | |
id: ruff | |
run: | | |
ruff check --output-format=github . | |
ruff format --check . | |
- name: Run mypy | |
id: mypy | |
run: | | |
mypy . | |
- name: Check license header and file | |
id: license-checker | |
run: | | |
./scripts/check_license.py |