Skip to content
Snippets Groups Projects
Select Git revision
  • ae091c23b32365bf5a6e498f8c2ee6a3e925479f
  • main default
  • tp2
  • tp1
  • tp3
  • 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
      script:
        - python -m venv .venv
        - source .venv/bin/activate
        - pip install -r requirements.txt
        - pip install pytest
      artifacts:
        paths:
          - .venv
    
    pylint:
      stage: lint
      dependencies:
        - download_dependencies
      needs:
        - download_dependencies
      script:
        - source .venv/bin/activate
        - pip install pylint
        - pylint calculator --fail-on=error
    
    # À toi de nous rajouter un petit job pour faire des tests unitaires
    pytest:
      stage: test
      dependencies:
        - download_dependencies
      script:
        - pip install pytest
        - pytest calculator