[英]Configuring .gitlab-ci.yml file in Gitlab to test python Codes
Currently I am stuck with trying to configure the gitlab-ci.yml file. 目前,我一直在尝试配置gitlab-ci.yml文件。 Im trying to automatically build and test my python code when I made a commit. 我在提交时试图自动构建和测试我的python代码。 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). 此刻,我只想构建一个简单的hello world程序,并通过拼写错误打印(打印而不是打印)来故意在python文件中放入一个错误。 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? 对如何正确配置gitlab-ci.yml文件以自动测试python代码有帮助吗?
I've also attached my current gitlab-ci.yml file. 我还附加了当前的gitlab-ci.yml文件。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.