server-setup:
  image: python
  stage: setup
  artifacts:
    paths:
      - server/env
    expire_in: 15 min
    untracked: true
  script:
    - python --version
    - pip install virtualenv
    - cd server/
    - python -m venv env
    - source env/bin/activate
    - pip install -r requirements.txt

server-test:
  image: python
  stage: test
  dependencies:
    - server-setup
  script:
    - pytest --cov app tests/
