Update core.py #2
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: python | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
lfs: true | |
- name: Set up Python 3.8 | |
uses: actions/setup-python@v3 | |
with: | |
python-version: 3.8 | |
- name: Install dependencies | |
run: | | |
git lfs pull | |
python -m pip install --upgrade pip | |
pip install pycodestyle pylint mypy pytest types-PyYAML | |
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | |
- name: Install package | |
run: | | |
python -m pip install . | |
- name: pycodestyle | |
run: | | |
python -m pycodestyle --ignore=E203,E501,W503 specsanalyzer tests | |
- name: pylint | |
if: ${{ always() }} | |
run: | | |
python -m pylint --good-names=i,j,k,ex,x,y,t,k,v,ax,df,ec,mc,dc,ct --disable=fixme,too-many-branches,too-many-locals,too-many-statements,too-many-arguments,too-many-lines,too-many-public-methods,too-many-instance-attributes,too-few-public-methods specsanalyzer tests | |
- name: mypy | |
if: ${{ always() }} | |
run: | | |
python -m mypy --ignore-missing-imports --follow-imports=silent --no-strict-optional specsanalyzer tests | |
- name: Test with pytest | |
if: ${{ always() }} | |
run: | | |
python -m pytest -sv tests |