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

.gitlab-ci.yml

Blame
  • Forked from an inaccessible project.
    user avatar
    Clément Charlier authored
    9bcf81cf
    History
    .gitlab-ci.yml 617 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
      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
      script:
        - pip install pytest
        - pytest calculator