Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Testing: flake8 linting shows errors & warnings but workflow step doesn't fail #5

Closed
dfornika opened this issue Apr 3, 2020 · 2 comments
Labels

Comments

@dfornika
Copy link
Collaborator

dfornika commented Apr 3, 2020

As part of our testing suite, we run flake8 against the parsers and the AntimicrobialResistanceGenomicAnalysisResult class, using GitHub Actions.

We can see in the logs that flake8 is finding issues, but the workflow steps are passing anyways. See:

https://github.com/pha4ge/harmonized-amr-parsers/runs/546839506?check_suite_focus=true#step:4:23

The linting workfow steps should fail if there are linting issues.

@dfornika
Copy link
Collaborator Author

I just noticed this note that explains why the linting step doesn't cause the workflow to fail. It is explicitly made to exit with status 0.

https://github.com/pha4ge/harmonized-amr-parsers/blob/4397bbfff73818776b1787bcd14e55a93f70921a/.github/workflows/pythonpackage.yml#L32

@fmaguire
Copy link
Member

Refactor is now flake8 compliant too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants