Currently I am stuck with trying to configure the gitlab-ci.yml file. Im trying to automatically build and test my python code when I made a commit. At the moment, I just wanted to build a simple hello world program and purposely put a mistake within the python file by misspelling print (printt instead of print). When I commit, the pipeline is run, but it seems to successfully pass the build and test phase (which it shouldn't).
Any help how to properly configure the gitlab-ci.yml file to automatically test python codes?
I've also attached my current gitlab-ci.yml file.




