Add linting to project #88
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: Pypendency | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: [ '3.8', '3.9' ] | |
name: Pypendency tests on ${{ matrix.python-version }} | |
steps: | |
- uses: actions/checkout@master | |
- name: Setup python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install pipenv | |
pipenv install --dev --system | |
- name: Check code quality | |
run: make lint docker=0 | |
- name: Unittest | |
env: | |
PYTHONPATH: ${PYTHONPATH}:${PWD}:src/ | |
run: | | |
pipenv run make run-tests |