image: python

stages:
  - setup
  - test

setup:
  stage: setup
  script:
    - cd server
    - pip install virtualenv
    - python -m venv env
    - source env/bin/activate
    - pip install -r requirements.txt
  artifacts:
    paths:
      - server/env

test:
  stage: test
  script:
    - cd server
    - source env/bin/activate
    - pytest --cov app test/
