use match statement instead of ifs (#56) #293
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
# SPDX-License-Identifier: MIT | |
name: Lints | |
on: | |
schedule: | |
# Run each Sun | |
- cron: '0 0 * * 0' | |
push: | |
pull_request: | |
workflow_dispatch: | |
env: | |
PYTHONPATH: src:test | |
jobs: | |
pylint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
- name: Install dependencies | |
run: pip install -r requirements.txt | |
- name: Run Black code format checker | |
run: | | |
pip install black | |
black --check src/facere_sensum/connectors | |
- name: Run Pylint static code analyser | |
run: | | |
pip install coverage pylint | |
pylint src/facere_sensum test fsy.py | |
- name: Run Bandit security analyser | |
run: | | |
pip install bandit | |
bandit -r src/facere_sensum | |
bandit -r test | |
bandit fsy.py | |
- name: Dry-run Sphinx documentation generator | |
run: | | |
pip install sphinx | |
sphinx-build -b html -n -W doc tmp |