feat: add workflow and fix linting and format code #9
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: Run tests | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v3 | |
with: | |
python-version: 3.8 | |
cache: 'pip' | |
cache-dependency-path: setup.py | |
- run: pip install -e . | |
- name: Upgrade pip | |
run: python -m pip install --upgrade pip setuptools | |
- name: install dev depens | |
run: pip install pylint pip-tools pyinstaller black types-pkg_resources types-requests mypy types-docutils types-PyYAML types-setuptools | |
- name: Static code analysis | |
run: make test-lint | |
- name: Python unit tests | |
run: make test-unit | |
- name: Static type checks | |
run: make test-types | |
- name: Code formatting | |
run: make test-format |