TNO Intern

Commit f0b0dd37 authored by Florian Knappers's avatar Florian Knappers
Browse files

Merge branch '63-add-tests-to-pipeline' into 'main'

Resolve "Add tests to pipeline"

Closes #63

See merge request AGS/pythermogis!78
parents ebc52862 3af29ca7
Loading
Loading
Loading
Loading
Loading
+25 −0
Original line number Diff line number Diff line
stages:
  - test
  - deploy

Run tests:
  stage: test
  tags:
    - docker
  image: ghcr.io/prefix-dev/pixi:latest
  allow_failure: false
  script:
    - export TZ=Europe/Amsterdam
    - ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
    - apt-get update
    - apt-get install -y build-essential gcc tk openjdk-17-jdk
    - export JAVA_HOME=/usr/lib/jvm/java-17-openjdk-amd64
    - export PATH=$JAVA_HOME/bin:$PATH
    - export THERMOGIS_JAR=$CI_PROJECT_DIR/resources/thermogis_jar/thermogis-1.7.0-shaded.jar
    - pixi install
    - pixi run pytest -rx tests/
    - rm -rf /var/lib/apt/lists/*
  only:
    - main
    - merge_requests

pages:
  stage: deploy
  image: python:latest