diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index c63cabc..b9a63a4 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -13,6 +13,9 @@ # # For more information, see: https://docs.gitlab.com/ee/ci/yaml/index.html#stages +before_script: + - pip install -Ur requirements.txt + stages: # List of stages for jobs, and their order of execution - test - build @@ -25,7 +28,7 @@ build-job: # This job runs in the build stage, which runs first. - echo "Build complete." unit-test-job: # This job runs in the test stage. - stage: test # It only starts when the job in the build stage completes successfully. + stage: test script: - echo "Running unit tests..." - python3 -munittest discover @@ -35,5 +38,5 @@ lint-test-job: # This job also runs in the test stage. stage: test # It can run at the same time as unit-test-job (in parallel). script: - echo "Linting code..." - - pylint . + - pylint -j0 -v $(git ls-files '*.py') - echo "No lint issues found."