image: python:3 stages: - test before_script: - pip install -r requirements.txt - pip install pylint test:pylint: stage: test script: - pylint --rcfile test/linting/pylintrc src/*.py only: changes: - "**/*.py" - "test/linting/pylintrc" - ".gitlab-ci.yml" test:unittest: stage: test script: - python -m unittest discover test/unittest only: changes: - "**/*.py" - ".gitlab-ci.yml"