Skip to content

Commit 51d9d7c

Browse files
Move env block to unittest step
1 parent 310f8af commit 51d9d7c

1 file changed

Lines changed: 34 additions & 34 deletions

File tree

.github/workflows/full_coverage.yml

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -103,40 +103,6 @@ jobs:
103103
# echo "Starting second MMS test at $(date)"
104104
# coverage run -a -m pyspedas.projects.mms.tests.test_mms_other
105105
106-
env:
107-
DATA_ROOT: ${{ runner.temp }}/spedas-${{ matrix.shard }}
108-
SPEDAS_DATA_DIR: ${{ runner.temp }}/spedas-${{ matrix.shard }}/data
109-
ACE_DATA_DIR: ${{ runner.temp }}/spedas-${{ matrix.shard }}/ace_data
110-
BARREL_DATA_DIR: ${{ runner.temp }}/spedas-${{ matrix.shard }}/barrel_data
111-
CLUSTER_DATA_DIR: ${{ runner.temp }}/spedas-${{ matrix.shard }}/cluster_data
112-
DSC_DATA_DIR: ${{ runner.temp }}/spedas-${{ matrix.shard }}/dsc_data
113-
CSSWE_DATA_DIR: ${{ runner.temp }}/spedas-${{ matrix.shard }}/csswe_data
114-
EQUATORS_DATA_DIR: ${{ runner.temp }}/spedas-${{ matrix.shard }}/eqs_data
115-
FAST_DATA_DIR: ${{ runner.temp }}/spedas-${{ matrix.shard }}/fast_data
116-
GEOTAIL_DATA_DIR: ${{ runner.temp }}/spedas-${{ matrix.shard }}/geotail_data
117-
GOES_DATA_DIR: ${{ runner.temp }}/spedas-${{ matrix.shard }}/goes_data
118-
IMAGE_DATA_DIR: ${{ runner.temp }}/spedas-${{ matrix.shard }}/img_data
119-
MICA_DATA_DIR: ${{ runner.temp }}/spedas-${{ matrix.shard }}/mica_data
120-
MMS_DATA_DIR: ${{ runner.temp }}/spedas-${{ matrix.shard }}/mms_data
121-
OMNI_DATA_DIR: ${{ runner.temp }}/spedas-${{ matrix.shard }}/omni_data
122-
POES_DATA_DIR: ${{ runner.temp }}/spedas-${{ matrix.shard }}/poes_data
123-
POLAR_DATA_DIR: ${{ runner.temp }}/spedas-${{ matrix.shard }}/polar_data
124-
PSP_DATA_DIR: ${{ runner.temp }}/spedas-${{ matrix.shard }}/psp_data
125-
RBSP_DATA_DIR: ${{ runner.temp }}/spedas-${{ matrix.shard }}/rbsp_data
126-
SOLO_DATA_DIR: ${{ runner.temp }}/spedas-${{ matrix.shard }}/solo_data
127-
STEREO_DATA_DIR: ${{ runner.temp }}/spedas-${{ matrix.shard }}/stereo_data
128-
THM_DATA_DIR: ${{ runner.temp }}/spedas-${{ matrix.shard }}/themis_data
129-
TWINS_DATA_DIR: ${{ runner.temp }}/spedas-${{ matrix.shard }}/twins_data
130-
ULY_DATA_DIR: ${{ runner.temp }}/spedas-${{ matrix.shard }}/uly_data
131-
WIND_DATA_DIR: ${{ runner.temp }}/spedas-${{ matrix.shard }}/wind_data
132-
LANL_DATA_DIR: ${{ runner.temp }}/spedas-${{ matrix.shard }}/lanl_data
133-
CNOFS_DATA_DIR: ${{ runner.temp }}/spedas-${{ matrix.shard }}/cnofs_data
134-
ST5_DATA_DIR: ${{ runner.temp }}/spedas-${{ matrix.shard }}/st5_data
135-
PYTPLOT_LOGGING_LEVEL: error
136-
VIRES_TOKEN: ${{ secrets.VIRES_AUTH }}
137-
MMS_AUTH_U: ${{ secrets.MMS_AUTH_U }}
138-
MMS_AUTH_P: ${{ secrets.MMS_AUTH_P }}
139-
140106
steps:
141107
- uses: actions/checkout@v5
142108

@@ -180,6 +146,40 @@ jobs:
180146
PY
181147
182148
- name: Run shard script
149+
env:
150+
DATA_ROOT: ${{ runner.temp }}/spedas-${{ matrix.shard }}
151+
SPEDAS_DATA_DIR: ${{ runner.temp }}/spedas-${{ matrix.shard }}/data
152+
ACE_DATA_DIR: ${{ runner.temp }}/spedas-${{ matrix.shard }}/ace_data
153+
BARREL_DATA_DIR: ${{ runner.temp }}/spedas-${{ matrix.shard }}/barrel_data
154+
CLUSTER_DATA_DIR: ${{ runner.temp }}/spedas-${{ matrix.shard }}/cluster_data
155+
DSC_DATA_DIR: ${{ runner.temp }}/spedas-${{ matrix.shard }}/dsc_data
156+
CSSWE_DATA_DIR: ${{ runner.temp }}/spedas-${{ matrix.shard }}/csswe_data
157+
EQUATORS_DATA_DIR: ${{ runner.temp }}/spedas-${{ matrix.shard }}/eqs_data
158+
FAST_DATA_DIR: ${{ runner.temp }}/spedas-${{ matrix.shard }}/fast_data
159+
GEOTAIL_DATA_DIR: ${{ runner.temp }}/spedas-${{ matrix.shard }}/geotail_data
160+
GOES_DATA_DIR: ${{ runner.temp }}/spedas-${{ matrix.shard }}/goes_data
161+
IMAGE_DATA_DIR: ${{ runner.temp }}/spedas-${{ matrix.shard }}/img_data
162+
MICA_DATA_DIR: ${{ runner.temp }}/spedas-${{ matrix.shard }}/mica_data
163+
MMS_DATA_DIR: ${{ runner.temp }}/spedas-${{ matrix.shard }}/mms_data
164+
OMNI_DATA_DIR: ${{ runner.temp }}/spedas-${{ matrix.shard }}/omni_data
165+
POES_DATA_DIR: ${{ runner.temp }}/spedas-${{ matrix.shard }}/poes_data
166+
POLAR_DATA_DIR: ${{ runner.temp }}/spedas-${{ matrix.shard }}/polar_data
167+
PSP_DATA_DIR: ${{ runner.temp }}/spedas-${{ matrix.shard }}/psp_data
168+
RBSP_DATA_DIR: ${{ runner.temp }}/spedas-${{ matrix.shard }}/rbsp_data
169+
SOLO_DATA_DIR: ${{ runner.temp }}/spedas-${{ matrix.shard }}/solo_data
170+
STEREO_DATA_DIR: ${{ runner.temp }}/spedas-${{ matrix.shard }}/stereo_data
171+
THM_DATA_DIR: ${{ runner.temp }}/spedas-${{ matrix.shard }}/themis_data
172+
TWINS_DATA_DIR: ${{ runner.temp }}/spedas-${{ matrix.shard }}/twins_data
173+
ULY_DATA_DIR: ${{ runner.temp }}/spedas-${{ matrix.shard }}/uly_data
174+
WIND_DATA_DIR: ${{ runner.temp }}/spedas-${{ matrix.shard }}/wind_data
175+
LANL_DATA_DIR: ${{ runner.temp }}/spedas-${{ matrix.shard }}/lanl_data
176+
CNOFS_DATA_DIR: ${{ runner.temp }}/spedas-${{ matrix.shard }}/cnofs_data
177+
ST5_DATA_DIR: ${{ runner.temp }}/spedas-${{ matrix.shard }}/st5_data
178+
PYTPLOT_LOGGING_LEVEL: error
179+
VIRES_TOKEN: ${{ secrets.VIRES_AUTH }}
180+
MMS_AUTH_U: ${{ secrets.MMS_AUTH_U }}
181+
MMS_AUTH_P: ${{ secrets.MMS_AUTH_P }}
182+
183183
run: |
184184
source ../.venv/bin/activate
185185
mkdir -p "$DATA_ROOT"

0 commit comments

Comments
 (0)