Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add pylint github action #7

Merged
merged 1 commit into from
Mar 29, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 7 additions & 8 deletions .github/workflows/python-conda-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,15 @@ jobs:
export PATH="$GITHUB_PATH:$PATH"
source activate scAR
scar --help
# - name: Lint with flake8
# run: |
# conda install flake8
# # 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
- name: Run pylint
run: |
export PATH="$GITHUB_PATH:$PATH"
source activate scAR
conda install pylint
pylint scAR --fail-under 0.5
- name: Run unit tests
run: |
export PATH="$GITHUB_PATH:$PATH"
source activate scAR
conda install pytest
pytest scAR
pytest scAR