diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d26fb1e95e24b738fff645d4c451fb4d5e34ca2b..28bef31858224f2c9af9c9932c7c1858fdc6d3ea 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,12 +1,26 @@ stages: - info + - test infojob: - stage: info - tags: - - linux - script: - - uname -a - - cat /etc/*release - - rpm -qa + stage: info + tags: + - linux + script: + - uname -a + - cat /etc/*release + - rpm -qa + + +tests: + stage: test + image: registry.jsc.fz-juelich.de/sharedrunner/opensuse-latex + tags: + - linux + before_script: + - python3 -m venv venv + - . venv/bin/activate + - pip install -r requirements.txt + script: + - pytest -v --cov=calculator diff --git a/requirements.txt b/requirements.txt index b6a79d894822c4641993001ad0898949ce18f537..5902d26f37052e58b6584e93a95d317e33e2e18c 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,8 +1,8 @@ -coverage==7.2.6 -exceptiongroup==1.1.1 -iniconfig==2.0.0 -packaging==23.1 -pluggy==1.0.0 -pytest==7.3.1 -pytest-cov==4.0.0 -tomli==2.0.1 +coverage +exceptiongroup +iniconfig +packaging +pluggy +pytest +pytest-cov +tomli