Skip to content
Snippets Groups Projects
Select Git revision
  • 5a680ddcefd4a7b1bda6bbe03fa740e5aa746bc8
  • main default
2 results

.gitlab-ci.yml

Blame
  • .gitlab-ci.yml 490 B
    image: python:3.10
    
    stages:
      - dependencies
      - lint
    
    download_dependencies:
      stage: dependencies
      before_script:
        - python -m venv .venv
        - source .venv/bin/activate
      script:
        - pip install -r requirements.txt
      artifacts:
        paths:
          - .venv
    
    pylint:
      stage: lint
      dependencies:
        - download_dependencies
      needs:
        - download_dependencies
      before_script:
        - source .venv/bin/activate
        - pip install pylint
      script:
        - pylint calculator --fail-on=error