Merge pull request #130 from kbialek/feature/log-error-to-switch-prot… #126
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: Code quality check | |
on: [push, pull_request] | |
jobs: | |
code-quality-check: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python 3.x | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
architecture: 'x64' | |
cache: 'pip' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install poetry | |
pip install -r requirements.txt | |
pip install -r requirements-dev.txt | |
- name: Static code analysis | |
run: | | |
make py-check-code | |
- name: Test with pytest | |
run: | | |
make test |