diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d86f80b5dc05ac34f5f03f226c255ed694ecb0e0..19485a0c45d00116ae22282258862c97805f9c32 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -18,6 +18,18 @@ test: +cov: + stage: test + needs: [] + image: python:3.12-slim + script: + - pip3 install -r requirements.txt + - coverage run --source='.' runtests.py + - coverage report + coverage: '/TOTAL.+ ([0-9]{1,3}%)/' + + + upload: stage: deploy needs: ['test', ] diff --git a/requirements-dev.txt b/requirements-dev.txt index e3846d931c8f96e383b0551bde04941fcd9e7210..68aa2f1eaaf4257016613d2db50be8b6f6da03ee 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -1,4 +1,5 @@ setuptools>=62.6 twine black=~25.1.0 -build \ No newline at end of file +build +coverage \ No newline at end of file diff --git a/setup.py b/setup.py deleted file mode 100644 index 606849326a4002007fd42060b51e69a19c18675c..0000000000000000000000000000000000000000 --- a/setup.py +++ /dev/null @@ -1,3 +0,0 @@ -from setuptools import setup - -setup()