diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b210048..c53b2a8 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,6 +1,18 @@ stages: + - test - build +tests: + stage: test + image: python:3.11-slim-bookworm + environment: production + before_script: + - pip install pytest + script: + - pip install -r requirements.txt + - pytest -W error test/ + + build: stage: build image: python:3.11-slim-bookworm diff --git a/pyproject.toml b/pyproject.toml index 0878fa1..5b541d5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -20,7 +20,7 @@ authors=[ {name="Lucas Plagwitz"} ] dependencies = [ - 'neurokit2>=0.2.7', + 'neurokit2>=0.2.10', 'numpy>=1.24.2', 'scipy>=1.12.0', 'pandas>=2.2.0', diff --git a/test/test_rlign.py b/test/test_rlign.py index e2b30a2..f137094 100644 --- a/test/test_rlign.py +++ b/test/test_rlign.py @@ -16,12 +16,8 @@ def setUp(self): self.ecg_1000hz_10s = ecg_simulate(sampling_rate=1000) self.X = np.concatenate([ecg_simulate(sampling_rate=500).reshape(1,1,5000)]*3000, axis=0) - print(self.X.shape) def test_multi_processing(self): - print(self.X.shape) - - normalizer_single_cpu = rlign.Rlign(num_workers=1, select_lead=0, template_bpm=40) normalizer_multiple_cpu = rlign.Rlign(num_workers=4, select_lead=0, template_bpm=40)