-
Notifications
You must be signed in to change notification settings - Fork 58
167 lines (164 loc) · 7.5 KB
/
pythonpackage.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
name: build
on: [push]
jobs:
build:
runs-on: ${{ matrix.os }}
# runs-on: macos-latest
strategy:
matrix:
#python-version: [3.5, 3.6, 3.7, 3.8]
#os: [ubuntu-latest, macos-latest, windows-latest]
os: [ubuntu-latest]
#os: [ubuntu-latest]
#os: [windows-latest]
python-version: [3.8]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/eric-superfast' || github.ref == 'refs/heads/themis'
- name: Install dependencies (Linux)
env:
MMS_AUTH_U: ${{ secrets.MMS_AUTH_U }}
MMS_AUTH_P: ${{ secrets.MMS_AUTH_P }}
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install spacepy # required for MMS qcotrans tests
pip install coveralls
pip install basemap
python -m pyspedas.mms.tests.setup_tests
if: matrix.os == 'ubuntu-latest' && (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/eric-superfast' || github.ref == 'refs/heads/themis')
- name: Install dependencies (Windows)
env:
MMS_AUTH_U: ${{ secrets.MMS_AUTH_U }}
MMS_AUTH_P: ${{ secrets.MMS_AUTH_P }}
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install spacepy # required for MMS qcotrans tests
pip install coveralls
pip install basemap
python -m pyspedas.mms.tests.setup_tests
if: matrix.os == 'windows-latest' && github.ref == 'refs/heads/master'
- name: Install dependencies (macOS)
env:
MMS_AUTH_U: ${{ secrets.MMS_AUTH_U }}
MMS_AUTH_P: ${{ secrets.MMS_AUTH_P }}
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install spacepy # required for MMS qcotrans tests
pip install coveralls
pip install basemap
python -m pyspedas.mms.tests.setup_tests
if: matrix.os == 'macos-latest' && github.ref == 'refs/heads/master'
- name: Lint with flake8
if: github.ref == 'refs/heads/master'
run: |
pip install flake8
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics --exclude 'erg'
# exit-zero treats all errors as warnings.
flake8 . --count --exit-zero --max-complexity=10 --statistics # --max-line-length=127 --exclude 'erg'
- name: Test with unittest
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/eric-superfast' || github.ref == 'refs/heads/themis'
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
SPEDAS_DATA_DIR: data
ACE_DATA_DIR: ace_data/
CLUSTER_DATA_DIR: cluster_data/
DSC_DATA_DIR: dsc_data/
CSSWE_DATA_DIR: csswe_data/
EQUATORS_DATA_DIR: eqs_data/
FAST_DATA_DIR: fast_data/
GEOTAIL_DATA_DIR: geotail_data/
GOES_DATA_DIR: goes_data/
IMAGE_DATA_DIR: img_data/
MICA_DATA_DIR: mica_data/
MMS_DATA_DIR: mms_data/
OMNI_DATA_DIR: omni_data/
POES_DATA_DIR: poes_data/
POLAR_DATA_DIR: polar_data/
PSP_DATA_DIR: psp_data/
RBSP_DATA_DIR: rbsp_data/
SOLO_DATA_DIR: solo_data/
STEREO_DATA_DIR: stereo_data/
THM_DATA_DIR: themis_data/
TWINS_DATA_DIR: twins_data/
ULY_DATA_DIR: uly_data/
WIND_DATA_DIR: wind_data/
LANL_DATA_DIR: lanl_data/
CNOFS_DATA_DIR: cnofs_data/
ST5_DATA_DIR: st5_data/
PYTPLOT_LOGGING_LEVEL: error
run: |
# coverage run -a -m pyspedas.akebono.tests.tests
coverage run -a -m pyspedas.soho.tests.tests
coverage run -a -m pyspedas.de2.tests.tests
coverage run -a -m pyspedas.st5.tests.tests
coverage run -a -m pyspedas.lanl.tests.tests
coverage run -a -m pyspedas.cotrans.tests.quaternions
coverage run -a -m pyspedas.cnofs.tests.tests
coverage run -a -m pyspedas.secs.tests.tests
coverage run -a -m pyspedas.sosmag.tests.tests
coverage run -a -m pyspedas.hapi.tests.tests
coverage run -a -m pyspedas.mms.tests.cotrans
coverage run -a -m pyspedas.mms.tests.events
coverage run -a -m pyspedas.mms.tests.orbit_plots
coverage run -a -m pyspedas.mms.tests.neutral_sheet
coverage run -a -m pyspedas.mms.tests.ql_l1b_sitl_tests
coverage run -a -m pyspedas.mms.tests.mms_part_getspec
coverage run -a -m pyspedas.mms.tests.load_routine_tests
coverage run -a -m pyspedas.mms.tests.feeps
coverage run -a -m pyspedas.mms.tests.eis
coverage run -a -m pyspedas.mms.tests.fpi_tests
coverage run -a -m pyspedas.mms.tests.file_filter
coverage run -a -m pyspedas.mms.tests.data_rate_segments
coverage run -a -m pyspedas.mms.tests.curlometer
coverage run -a -m pyspedas.mms.tests.wavpol
coverage run -a -m pyspedas.mms.tests.slice2d
coverage run -a -m pyspedas.dscovr.tests.tests
coverage run -a -m pyspedas.utilities.tests.download_tests
coverage run -a -m pyspedas.utilities.tests.misc_tests
coverage run -a -m pyspedas.utilities.tests.time_tests
coverage run -a -m pyspedas.cotrans.tests.cotrans
coverage run -a -m pyspedas.cotrans.tests.quaternions
coverage run -a -m pyspedas.cotrans.tests.test_minvar
coverage run -a -m pyspedas.cluster.tests.tests
coverage run -a -m pyspedas.csswe.tests.tests
coverage run -a -m pyspedas.ace.tests.tests
coverage run -a -m pyspedas.equator_s.tests.tests
coverage run -a -m pyspedas.image.tests.tests
coverage run -a -m pyspedas.psp.tests.tests
coverage run -a -m pyspedas.rbsp.tests.tests
coverage run -a -m pyspedas.stereo.tests.tests
coverage run -a -m pyspedas.twins.tests.tests
coverage run -a -m pyspedas.wind.tests.tests
coverage run -a -m pyspedas.poes.tests.tests
coverage run -a -m pyspedas.polar.tests.tests
coverage run -a -m pyspedas.geopack.tests.tests
coverage run -a -m pyspedas.geotail.tests.tests
coverage run -a -m pyspedas.analysis.tests.tests
coverage run -a -m pyspedas.analysis.tests.test_twavpol
coverage run -a -m pyspedas.fast.tests.tests
coverage run -a -m pyspedas.omni.tests.tests
coverage run -a -m pyspedas.themis.tests.tests
coverage run -a -m pyspedas.maven.tests.tests
coverage run -a -m pyspedas.goes.tests.tests
coverage run -a -m pyspedas.mica.tests.tests
coverage run -a -m pyspedas.ulysses.tests.tests
coverage run -a -m pyspedas.erg.tests.tests
coverage run -a -m pyspedas.solo.tests.tests
coverage run -a -m pyspedas.kyoto.tests.tests
coverage run -a -m pyspedas.swarm.tests.tests
coverage run -a -m pyspedas.themis.tests.tests_themis_check_args
coverage run -a -m pyspedas.themis.tests.tests_cal_fit
coverage run -a -m pyspedas.themis.tests.tests_dsl_cotrans
coverage run -a -m pyspedas.themis.tests.tests_lunar_cotrans
coverage run -a -m pyspedas.themis.tests.tests_spinmodel
coverage run -a -m pyspedas.themis.tests.tests_state
coverage run -a -m pyspedas.themis.tests.test_cal_fit_tplot_metadata
coveralls