Skip to content

Commit

Permalink
updated workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
ampledata committed May 25, 2022
1 parent 95912dc commit 5bc2854
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 68 deletions.
22 changes: 0 additions & 22 deletions .github/workflows/pylint.yml

This file was deleted.

37 changes: 0 additions & 37 deletions .github/workflows/python-app.yml

This file was deleted.

16 changes: 7 additions & 9 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,14 @@ jobs:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install flake8 pytest
if [ -f requirements_test.txt ]; then pip install -r requirements_test.txt; fi
pip install -e .
make install_test
make install_editable
- name: Analysing the code with pylint
run: |
make pylint
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
make flake8
- name: Test with pytest
run: |
pytest -cov=aiscot
make test_cov
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,6 @@ pytest:
pytest

test: install_editable install_test pytest

test_cov:
pytest -cov=aiscot
1 change: 1 addition & 0 deletions requirements_test.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ pytest-cov
flake8
pylint
mypy
black

0 comments on commit 5bc2854

Please sign in to comment.