Skip to content

Commit

Permalink
Added test-CICD
Browse files Browse the repository at this point in the history
  • Loading branch information
l-bick committed Sep 17, 2024
1 parent 3898209 commit c55e4aa
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
12 changes: 12 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
4 changes: 0 additions & 4 deletions test/test_rlign.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit c55e4aa

Please sign in to comment.