Skip to content
Snippets Groups Projects
Select Git revision
  • 6f66eb2b735912802b6befbd745d2fb5adbf4aaf
  • main default
  • tp3
  • tp2
  • tp1
  • tp3-correction
  • tp2-correction
  • tp1-correction
  • admins
9 results

.gitlab-ci.yml

Blame
  • Forked from an inaccessible project.
    .gitlab-ci.yml 686 B
    image: python:3.10
    
    stages:
      - dependencies
      - lint
      - test
    
    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
    
    pytest:
      stage: test
      dependencies:
        - download_dependencies
      needs:
        - download_dependencies
      before_script:
        - source .venv/bin/activate
      script:
        - pytest calculator