Commit a09875b
authored
Albrja/mic 6801/pytest xdist (#273)
Albrja/mic 6801/pytest xdist
Add pytest xdist feature to parallelize test suites
- *Category*: Test
- *JIRA issue*: https://jira.ihme.washington.edu/browse/MIC-6801
- *Research reference*: <!--Link to research documentation for code -->
Changes and notes
-add pytest-xdist to install requirements
-add conftest hook to automatically discover number of CPUs allocated on srun on slurm
-allow for parallelization on local builds but default to running tests linearly
Verification and Testing
-built new environment locally and on the cluster. Saw expected default behavior and tested -n flag
*** REMINDER ***
model results directory is up to date
- [X ] all tests pass (`pytest --runslow` with both *vivarium_gates_mncnh_artifact* and *vivarium_gates_mncnh_simulation*)1 parent 3b4edf9 commit a09875b
3 files changed
+24
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| 66 | + | |
66 | 67 | | |
67 | 68 | | |
68 | 69 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
90 | 112 | | |
91 | 113 | | |
92 | 114 | | |
| |||
0 commit comments