PMBio / deeprvat

Other
15 stars 1 forks source link

Add test data from str samples and speed up tests #73

Closed endast closed 1 month ago

endast commented 2 months ago

What

This PR does 5 things:

(deeprvat_non_cuda) *[feature/tests-optimize][~/code/deeprvat]$ pytest tests/deeprvat     
=== test session starts ===
platform darwin -- Python 3.8.15, pytest-8.1.1, pluggy-1.4.0
rootdir: /Users/b260-admin/code/dkfz/deeprvat
plugins: xdist-3.5.0
collected 9 items                                                                                                                                                                                                                                                                                                      

tests/deeprvat/test_train.py .........                                                          [100%]

pytest tests/deeprvat
============================= 9 passed, 26 warnings in 251.47s (0:04:11) =============================

After


(deeprvat_non_cuda) *[feature/tests-optimize][~/code/deeprvat]$ pytest -n auto tests/deeprvat
========================================= test session starts =========================================
platform darwin -- Python 3.8.15, pytest-8.1.1, pluggy-1.4.0
rootdir: /Users/b260-admin/code/dkfz/deeprvat
plugins: xdist-3.5.0
12 workers [9 items]      
.........                                                                                                                                                                                                                                                                                                        [100%]
============================= 9 passed, 48 warnings in 74.11s (0:01:14)=============================

Testing

Test running the sample pipelines and the test to make sure they pass and that the data is in the expected format.

Related issue:

https://github.com/PMBio/deeprvat/issues/70