Closed brylie closed 2 years ago
We don't currently run any CI jobs to verify that commits pass tests, for example.
TODO:
format
lint
autopep8
test
pytest
Alternatively
lint_and_test
python project/manage.py test
format_and_test
At some point, we may look into more efficient use of these runners. For now, a single runner is fine, since they share dependencies.
@TheMythologist has kindly contributed code that runs linting tasks.
Next, we will run the project tests, via pytest, during CI.
As a follow-up, we will add a test coverage report #62
We don't currently run any CI jobs to verify that commits pass tests, for example.
Task
TODO:
format
pipeline tolint
(since it is only checking lint)autopep8
check fromtest
pipeline tolint
pytest
unit tests intest
pipeline (since they are the actual tests)Alternatively
format
tolint_and_test
with a useful alias like "Lint and test"autopep8
task tolint_and_test
python project/manage.py test
informat_and_test
as a job calledtest
test
flow, since it contains redundant stepsAt some point, we may look into more efficient use of these runners. For now, a single runner is fine, since they share dependencies.