image: ubuntu:jammy # Change to latest later.

stages:
  - test

test_snipper:
  stage: test
  script:
    - echo "Testing student files"
    - apt-get update -y
    - apt install -y python3-pip
    - apt install -y python3.10 python-is-python3
    - apt install -y git
    - apt install -y xvfb # Virtual framebuffer for GL stuff.
    - pip install -e ./
    - cd tests
    - xvfb-run -s "-screen 0 1400x900x24" python -m unittest test_python.py
    - echo "Buy world"



#    - apt install -y python-is-python3
#    - python --version
#    - locate python
#    - apt install -y inkscape pdftk
#    - apt install -y latexmk  poppler-utils # latexmk and pdftocairo
#    - DEBIAN_FRONTEND='noninteractive' apt install -y texlive-latex-recommended texlive-latex-extra texlive-science pdf2svg
#    - pip install -U Pillow