|
|
@ -38,7 +38,7 @@ jobs:
|
|
|
|
python -m pip install --upgrade pip
|
|
|
|
python -m pip install --upgrade pip
|
|
|
|
pip install flake8 pytest pytest-mock mypy types-protobuf
|
|
|
|
pip install flake8 pytest pytest-mock mypy types-protobuf
|
|
|
|
pip install --use-pep517 -r requirements.txt
|
|
|
|
pip install --use-pep517 -r requirements.txt
|
|
|
|
mypy --install-types --non-interactive
|
|
|
|
mypy --install-types --non-interactive *.py
|
|
|
|
- name: Lint with flake8
|
|
|
|
- name: Lint with flake8
|
|
|
|
run: |
|
|
|
|
run: |
|
|
|
|
# stop the build if there are Python syntax errors or undefined names
|
|
|
|
# stop the build if there are Python syntax errors or undefined names
|
|
|
@ -48,6 +48,6 @@ jobs:
|
|
|
|
- name: Type checking with mypy
|
|
|
|
- name: Type checking with mypy
|
|
|
|
run: |
|
|
|
|
run: |
|
|
|
|
mypy --strict *.py
|
|
|
|
mypy --strict *.py
|
|
|
|
if: matrix.python-version == "3.x"
|
|
|
|
if: matrix.python-version == '3.x'
|
|
|
|
- name: Test with pytest
|
|
|
|
- name: Test with pytest
|
|
|
|
run: pytest
|
|
|
|
run: pytest
|
|
|
|