CI/CD exits with warnings with the default template.
After following the instructions on the README to create a new project and push it to git, I saw that the gitlab CI/CD pipeline exited with warnings on the test
stage.
When I looked at the job output, I saw two things:
First, an error related to km3io
not being found:
$ make black-check
249black --check km3io
250Usage: black [OPTIONS] SRC ...
251Try 'black -h' for help.
252Error: Invalid value for 'SRC ...': Path 'km3io' does not exist.
253make: *** [Makefile:46: black-check] Error 2
I saw in the makefile that there are a couple of lines assuming that km3io
is part of the package. I'd remove this dependency (for at least, the project I'm creating will not use km3io
).
After removing the km3io
dependencies from the makefile, I still see warnings on the ci/cd, this time caused by the format of one of the tests:
black --check tests
297would reformat tests/test_is_mandatory.py
298Oh no! 💥 💔 💥
2991 file would be reformatted, 1 file would be left unchanged.
300make: *** [Makefile:46: black-check] Error 1
302
Cleaning up project directory and file based variables
00:01
304ERROR: Job failed: exit code 1
it seems that this file is not correctly formatted? I don't know how to fix that, though...