Skip to content
Advertisement

Tag: gitlab-ci

How to run pylint only on changed files in Gitlab?

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,

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

Advertisement