I’m trying to run pylint only on changed python files, but my build keeps failing. I have extracted the changed files through git diff and saved them in a variable, but when I inject the variable into the pylint call, it fails. It works fine with a hardcoded filename however. Here is my yaml: Answer While qathulu answer is adequate,
Tag: gitlab-ci
Python coverage in Gitlab CI not showing any percentages
I am trying to make test coverage work for a python project. And I simply cannot figure out why there is no percentage showing neither in the tests nor the badge. The command coverage report is called produces this output in the log: and depending on the regex-expression that is saved in General > CI/CD, it simply looks for the
Avoid early exit from command in gitlab CI script pipeline while still capturing exit status
I am trying to generate a badge from PyLint output in a Gitlab CI script. Eventually, the job should fail if PyLint has a non-zero exit code. But before it does so, I want the badge to be created. So I have tried the following: This works fine if the PyLint exit code is 0: However, when PyLint exits with
Upload to pypi from Gitlab Pipelines
I’m trying to upload a package to pypi using a Gitlab CI job, but I cannot make it work :/ Anyone has a working example? What I have tried so far in my .gitlab-ci.yaml (from my local machine all of them are working): Twine with a .pypirc file Same as before but with $VARIABLE Two options before but using python