added linters #46
Workflow file for this run
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: Auto Testing | |
on: | |
pull_request: | |
push: | |
branches: | |
- master | |
jobs: | |
codespell: | |
runs-on : ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Codespell with annotations | |
uses: codespell-project/[email protected] | |
linter: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ricardochaves/[email protected] | |
with: | |
python-root-list: "." | |
use-pylint: false | |
use-pycodestyle: false | |
use-flake8: true | |
use-black: false | |
use-mypy: true | |
use-isort: true | |
extra-pylint-options: "" | |
extra-pycodestyle-options: "" | |
extra-flake8-options: "" | |
extra-black-options: "" | |
extra-mypy-options: "" | |
extra-isort-options: "" | |
tests: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python 3.11 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.11" | |
- name: Install dependencies | |
run: | |
python -m pip install --upgrade pip | |
pip install numpy coverage pytest dataclasses iniconfig packaging pluggy | |
pip install ./ | |
- name: Run Unit Tests with Coverage | |
run: | |
coverage run -m unittest discover | |
coverage report |