Skip to content

Commit c1f93cd

Browse files
Add rest of coverage tests in several shards
1 parent ea8699b commit c1f93cd

1 file changed

Lines changed: 269 additions & 11 deletions

File tree

.github/workflows/full_coverage.yml

Lines changed: 269 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -75,33 +75,291 @@ jobs:
7575
fail-fast: false
7676
matrix:
7777
include:
78-
- shard: hapi
78+
- shard: spdf_themis_etc
7979
shard_script: |
80-
echo "Starting hapi tests at $(date)"
80+
echo "Starting spdf/cdaweb/hapi tests at $(date)"
8181
coverage run -m pyspedas.hapi_tools.tests.test_hapi
82-
83-
echo "Disk usage after hapi:"
82+
echo Starting ace tests at `date`
83+
coverage run -a -m pyspedas.projects.ace.tests.test_ace
84+
echo Starting cluster tests at `date`
85+
coverage run -a -m pyspedas.projects.cluster.tests.test_cluster
86+
echo Starting cluster S3 tests at `date`
87+
coverage run -a -m pyspedas.projects.cluster.tests.test_cluster_uri
88+
echo Starting CDAWeb tests at `date`
89+
coverage run -a -m pyspedas.cdagui_tools.tests.test_cdagui
90+
echo Starting soho tests at `date`
91+
coverage run -a -m pyspedas.projects.soho.tests.test_soho
92+
echo Starting de2 tests at `date`
93+
coverage run -a -m pyspedas.projects.de2.tests.test_de2
94+
echo Starting st5 tests at `date`
95+
coverage run -a -m pyspedas.projects.st5.tests.test_st5
96+
echo Starting lanl tests at `date`
97+
coverage run -a -m pyspedas.projects.lanl.tests.test_lanl
98+
echo Starting cotrans quaternion tests at `date`
99+
coverage run -a -m pyspedas.cotrans_tools.tests.test_quaternions
100+
echo Starting cnofs tests at `date`
101+
coverage run -a -m pyspedas.projects.cnofs.tests.test_cnofs
102+
echo Starting kompsat tests at `date`
103+
coverage run -a -m pyspedas.projects.kompsat.tests.test_kompsat
104+
echo Starting dscovr tests at `date`
105+
coverage run -a -m pyspedas.projects.dscovr.tests.test_dscovr
106+
echo Starting utilities download tests at `date`
107+
coverage run -a -m pyspedas.utilities.tests.test_utilities_download
108+
echo Starting utilities misc tests at `date`
109+
coverage run -a -m pyspedas.utilities.tests.test_utilities_misc
110+
echo Starting tplot wildcard tests at `date`
111+
coverage run -a -m pyspedas.utilities.tests.test_utilities_tplot_wildcard
112+
echo Starting plotting tests at `date`
113+
coverage run -a -m pyspedas.utilities.tests.test_utilities_plot
114+
echo Starting orbit plot tests at `date`
115+
coverage run -a -m pyspedas.utilities.tests.test_utilities_tplotxy
116+
echo Starting utilities time_tests tests at `date`
117+
coverage run -a -m pyspedas.utilities.tests.test_utilities_time
118+
echo Starting utilities libs_tests tests at `date`
119+
coverage run -a -m pyspedas.utilities.tests.test_utilities_libs
120+
echo Starting utilities S3 tests at `date`
121+
coverage run -a -m pyspedas.utilities.tests.test_utilities_download_uri
122+
echo Starting cotrans tests at `date`
123+
coverage run -a -m pyspedas.cotrans_tools.tests.test_cotrans
124+
echo Starting utilities xdegap tests at `date`
125+
coverage run -a -m pyspedas.utilities.tests.test_xdegap
126+
echo Starting utilities tplot_math tests at `date`
127+
coverage run -a -m pyspedas.utilities.tests.test_math
128+
echo Starting cotrans minvar tests at `date`
129+
coverage run -a -m pyspedas.cotrans_tools.tests.test_minvar
130+
echo Starting cotrans fac tests at `date`
131+
coverage run -a -m pyspedas.cotrans_tools.tests.test_fac
132+
echo Starting cotrans lmn tests at `date`
133+
coverage run -a -m pyspedas.cotrans_tools.tests.test_lmn
134+
echo Starting csswe tests at `date`
135+
coverage run -a -m pyspedas.projects.csswe.tests.test_csswe
136+
echo Starting equator_s tests at `date`
137+
coverage run -a -m pyspedas.projects.equator_s.tests.test_equator_s
138+
echo Starting image tests at `date`
139+
coverage run -a -m pyspedas.projects.image.tests.test_image
140+
echo Starting psp tests at `date`
141+
coverage run -a -m pyspedas.projects.psp.tests.test_psp
142+
echo Starting rbsp tests at `date`
143+
coverage run -a -m pyspedas.projects.rbsp.tests.test_rbsp
144+
echo Starting stereo tests at `date`
145+
coverage run -a -m pyspedas.projects.stereo.tests.test_stereo
146+
echo Starting twins tests at `date`
147+
coverage run -a -m pyspedas.projects.twins.tests.test_twins
148+
echo Starting wind tests at `date`
149+
coverage run -a -m pyspedas.projects.wind.tests.test_wind
150+
echo Starting poes tests at `date`
151+
echo "Disk usage mid spdf"
84152
df -h
85153
du -sh "$DATA_ROOT"/* 2>/dev/null || true
154+
echo Starting fast tests at `date`
155+
coverage run -a -m pyspedas.projects.fast.tests.test_fast
156+
echo Starting omni tests at `date`
157+
coverage run -a -m pyspedas.projects.omni.tests.test_omni
158+
echo Starting themis tests at `date`
159+
coverage run -a -m pyspedas.projects.themis.tests.test_themis
160+
echo Starting mica tests at `date`
161+
coverage run -a -m pyspedas.projects.mica.tests.test_mica
162+
echo Starting ulysses tests at `date`
163+
coverage run -a -m pyspedas.projects.ulysses.tests.test_ulysses
164+
echo Starting solo tests at `date`
165+
coverage run -a -m pyspedas.projects.solo.tests.test_solo
166+
echo Starting themis_check_args tests at `date`
167+
coverage run -a -m pyspedas.projects.themis.tests.test_themis_check_args
168+
echo Starting themis autoload support tests at `date`
169+
coverage run -a -m pyspedas.projects.themis.tests.test_themis_autoload_support
170+
echo Starting themis cal_fit tests at `date`
171+
coverage run -a -m pyspedas.projects.themis.tests.test_themis_cal_fit
172+
echo Starting themis dsl_cotrans tests at `date`
173+
coverage run -a -m pyspedas.projects.themis.tests.test_themis_dsl_cotrans
174+
echo Starting themis lunar_cotrans tests at `date`
175+
coverage run -a -m pyspedas.projects.themis.tests.test_themis_lunar_cotrans
176+
echo Starting themis spinmodel tests at `date`
177+
coverage run -a -m pyspedas.projects.themis.tests.test_themis_spinmodel
178+
echo Starting themis state tests at `date`
179+
coverage run -a -m pyspedas.projects.themis.tests.test_themis_state
180+
echo Starting themis scpot2dens tests at `date`
181+
coverage run -a -m pyspedas.projects.themis.tests.test_themis_scpot2dens
182+
echo Starting themis tplot_time tests at `date`
183+
coverage run -a -m pyspedas.projects.themis.tests.test_themis_tplot_time
184+
echo Starting barrel tests at `date`
185+
coverage run -a -m pyspedas.projects.barrel.tests.test_barrel
186+
echo "========================================================="
187+
# Show the free disk space on this filesystem
188+
echo "Disk usage after spdf, themis, etc test:"
189+
df -h
86190
87191
echo "Cleaning downloaded files"
88192
rm -rf "$DATA_ROOT"/*
193+
rm -rf "$SPEDAS_DATA_DIR"/*
194+
195+
# Show the free disk space on this filesystem
196+
echo "Disk usage after cleanup:"
197+
df -h
89198
90199
- shard: mms
91200
shard_script: |
201+
echo IP address for this test:
202+
coverage run -a -m pyspedas.utilities.tests.test_find_ip_address
92203
echo "Starting mms data rate seg tests at $(date)"
93204
coverage run -m pyspedas.projects.mms.tests.test_mms_data_rate_seg
94-
95-
echo "Disk usage after MMS test:"
205+
echo Starting mms cotrans tests at `date`
206+
coverage run -a -m pyspedas.projects.mms.tests.test_mms_cotrans
207+
echo Starting mms events tests at `date`
208+
coverage run -a -m pyspedas.projects.mms.tests.test_mms_events
209+
echo Starting mms orbit_plots tests at `date`
210+
coverage run -a -m pyspedas.projects.mms.tests.test_mms_orbit_plots
211+
echo Starting mms overview_plots tests at `date`
212+
coverage run -a -m pyspedas.projects.mms.tests.test_mms_overview_plots
213+
echo Starting mms neutral sheet tests at `date`
214+
coverage run -a -m pyspedas.projects.mms.tests.test_mms_neutral_sheet
215+
echo Starting mms ql_lib_sitl tests at `date`
216+
coverage run -a -m pyspedas.projects.mms.tests.test_mms_ql_l1b_sitl
217+
echo Starting mms_part_getspec tests at `date`
218+
coverage run -a -m pyspedas.projects.mms.tests.test_mms_part_getspec
219+
echo Starting mms_part_getspec FPI bulk velocity subtraction tests at `date`
220+
coverage run -a -m pyspedas.projects.mms.tests.test_mms_getspec_bulkv
221+
echo Starting mms load routine tests at `date`
222+
coverage run -a -m pyspedas.projects.mms.tests.test_mms_load_routine
223+
echo Starting mms feeps tests at `date`
224+
coverage run -a -m pyspedas.projects.mms.tests.test_mms_feeps
225+
echo Starting mms eis tests at `date`
226+
coverage run -a -m pyspedas.projects.mms.tests.test_mms_eis
227+
echo Starting mms fpi tests at `date`
228+
coverage run -a -m pyspedas.projects.mms.tests.test_mms_fpi
229+
echo Starting mms file_filter tests at `date`
230+
coverage run -a -m pyspedas.projects.mms.tests.test_mms_file_filter
231+
echo Starting mms curlometer tests at `date`
232+
coverage run -a -m pyspedas.projects.mms.tests.test_mms_curlometer
233+
echo Starting mms wavpol tests at `date`
234+
coverage run -a -m pyspedas.projects.mms.tests.test_mms_wavpol
235+
echo Starting mms slice2d tests at `date`
236+
coverage run -a -m pyspedas.projects.mms.tests.test_mms_slice2d
237+
#echo Starting mms S3 tests at `date`
238+
#coverage run -a -m pyspedas.projects.mms.tests.test_mms_load_uri
239+
echo "========================================================="
240+
# Show the free disk space on this filesystem
241+
echo "Disk usage after MMS test group:"
96242
df -h
97243
du -sh "$MMS_DATA_DIR" 2>/dev/null || true
98-
99244
echo "Cleaning MMS downloads"
100-
rm -rf "$MMS_DATA_DIR"
245+
rm -rf "$MMS_DATA_DIR"/*
246+
rm -rf "$DATA_ROOT"/*
247+
rm -rf "$SPEDAS_DATA_DIR"/*
248+
249+
# Show the free disk space on this filesystem
250+
echo "Disk usage after cleanup:"
251+
df -h
252+
253+
- shard: erg_maven_etc
254+
shard_script: |
255+
echo Starting erg tests at `date`
256+
coverage run -a -m pyspedas.projects.erg.tests.test_erg
257+
echo Starting erg cotrans tests at `date`
258+
coverage run -a -m pyspedas.projects.erg.tests.test_erg_cotrans
259+
echo Starting erg ground data tests at `date`
260+
coverage run -a -m pyspedas.projects.erg.tests.test_erg_ground
261+
echo Starting erg mepe particle tests at `date`
262+
coverage run -a -m pyspedas.projects.erg.tests.test_erg_mepe
263+
echo Starting erg mepi particle tests at `date`
264+
coverage run -a -m pyspedas.projects.erg.tests.test_erg_mepi
265+
echo Starting erg lepe particle tests at `date`
266+
coverage run -a -m pyspedas.projects.erg.tests.test_erg_lepe
267+
echo Starting erg lepi particle tests at `date`
268+
coverage run -a -m pyspedas.projects.erg.tests.test_erg_lepi
269+
echo Starting erg xep particle tests at `date`
270+
coverage run -a -m pyspedas.projects.erg.tests.test_erg_xep
271+
echo Starting erg hep particle tests at `date`
272+
coverage run -a -m pyspedas.projects.erg.tests.test_erg_hep
273+
echo "========================================================="
274+
# Show the free disk space on this filesystem
275+
echo "Disk space after ERG tests:"
276+
df -h .
277+
# Clean up files downloaded so far
278+
/bin/rm -rf data/*
279+
echo "Disk space after cleanup:"
280+
df -h .
281+
echo "========================================================="
282+
echo Starting MTH5 import test at `date`
283+
coverage run -a -m pyspedas.mth5.tests.test_mth5_import
284+
echo Starting MTH5 load_fdsn test at `date`
285+
coverage run -a -m pyspedas.mth5.tests.test_load_fdsn
286+
echo Starting akebono tests at `date`
287+
coverage run -a -m pyspedas.projects.akebono.tests.test_akebono
288+
#echo Starting maven S3 tests at `date`
289+
#coverage run -a -m pyspedas.projects.maven.tests.test_maven_uri
290+
echo Starting maven tests at `date`
291+
coverage run -a -m pyspedas.projects.maven.tests.test_maven
292+
echo Starting VIRES client tests at `date`
293+
coverage run -a -m pyspedas.vires.tests.test_vires
294+
echo Starting secs tests at `date`
295+
coverage run -a -m pyspedas.projects.secs.tests.test_secs
296+
echo Starting particles tests at `date`
297+
coverage run -a -m pyspedas.particles.tests.test_particles
298+
echo "========================================================="
299+
# Show the free disk space on this filesystem
300+
echo "Disk usage after ERG,MAVEN,etc test group:"
301+
df -h
302+
du -sh "$MMS_DATA_DIR" 2>/dev/null || true
303+
echo "Cleaning downloads"
304+
rm -rf "$DATA_ROOT"/*
305+
rm -rf "$SPEDAS_DATA_DIR"/*
306+
307+
# Show the free disk space on this filesystem
308+
echo "Disk usage after cleanup:"
309+
df -h
101310
102-
# Example of adding another test later:
103-
# echo "Starting second MMS test at $(date)"
104-
# coverage run -a -m pyspedas.projects.mms.tests.test_mms_other
311+
- shard: elfin_goes_poes_etc
312+
shard_script: |
313+
echo Starting elfin epd_l1 tests at `date`
314+
coverage run -a -m pyspedas.projects.elfin.tests.test_epd_l1
315+
echo Starting elfin epd_l2 tests at `date`
316+
coverage run -a -m pyspedas.projects.elfin.tests.test_epd_l2
317+
echo Starting elfin state tests at `date`
318+
coverage run -a -m pyspedas.projects.elfin.tests.test_state
319+
echo Starting elfin tests at `date`
320+
coverage run -a -m pyspedas.projects.elfin.tests.test_elfin
321+
echo Starting elfin epd calibration tests at `date`
322+
coverage run -a -m pyspedas.projects.elfin.tests.test_epd_calibration
323+
echo Starting noaa tests at `date`
324+
coverage run -a -m pyspedas.projects.noaa.tests.test_noaa
325+
echo "========================================================="
326+
coverage run -a -m pyspedas.projects.poes.tests.test_poes
327+
echo Starting polar tests at `date`
328+
coverage run -a -m pyspedas.projects.polar.tests.test_polar
329+
echo Starting geopack tests at `date`
330+
coverage run -a -m pyspedas.geopack.tests.test_geopack
331+
echo Starting geopack-IDL validation tests at `date`
332+
coverage run -a -m pyspedas.geopack.tests.test_geopack_idl_validation
333+
echo Starting geopack clean_model_parameters tests at `date`
334+
coverage run -a -m pyspedas.geopack.tests.test_clean_model_parameters
335+
echo Starting geopack-IDL field line tracing validation tests at `date`
336+
coverage run -a -m pyspedas.geopack.tests.test_fl_tracing
337+
echo Starting geotail tests at `date`
338+
coverage run -a -m pyspedas.projects.geotail.tests.test_geotail
339+
echo Starting analysis tests at `date`
340+
coverage run -a -m pyspedas.analysis.tests.test_analysis
341+
echo Starting analysis wavpol tests at `date`
342+
coverage run -a -m pyspedas.analysis.tests.test_twavpol
343+
echo Starting analysis wavelet tests at `date`
344+
coverage run -a -m pyspedas.analysis.tests.test_wavelet
345+
echo Starting analysis magnetic nulls tests at `date`
346+
coverage run -a -m pyspedas.analysis.tests.test_magnetic_nulls
347+
echo Starting goes tests at `date`
348+
coverage run -a -m pyspedas.projects.goes.tests.test_goes
349+
echo Starting kyoto tests at `date`
350+
coverage run -a -m pyspedas.projects.kyoto.tests.test_kyoto
351+
echo Starting swarm tests at `date`
352+
coverage run -a -m pyspedas.projects.swarm.tests.test_swarm
353+
echo "========================================================="
354+
# Show the free disk space on this filesystem
355+
echo "Disk usage after elfin, goes, poes etc test group:"
356+
df -h
357+
rm -rf "$DATA_ROOT"/*
358+
rm -rf "$SPEDAS_DATA_DIR"/*
359+
360+
# Show the free disk space on this filesystem
361+
echo "Disk usage after cleanup:"
362+
df -h
105363
106364
steps:
107365
- uses: actions/checkout@v5

0 commit comments

Comments
 (0)