Skip to content

Improve reqs, docs and CI #39

Improve reqs, docs and CI

Improve reqs, docs and CI #39

Workflow file for this run

name: Static analysis
on:
push:
branches:
- main
- devel
pull_request:
branches:
- main
- devel
defaults:
run:
shell: bash
jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- name: Checkout the code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Run pre-commit
uses: pre-commit/action@v3.0.1
cloc:
runs-on: ubuntu-latest
steps:
- name: Checkout the code
uses: actions/checkout@v4
- name: Download and run cloc
run: |
curl -s https://raw.githubusercontent.com/AlDanial/cloc/master/cloc > cloc
chmod +x cloc
./cloc --version
./cloc $(git ls-files)
mypy:
runs-on: ubuntu-latest
continue-on-error: true
steps:
- name: Checkout the code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Type checking with mypy
run: |
pip install mypy
mypy src/ || true