-
Notifications
You must be signed in to change notification settings - Fork 76
153 lines (151 loc) · 4.35 KB
/
test.yaml
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
name: Test
on:
pull_request:
push: { branches: [main] }
workflow_dispatch:
env:
python_version: '3.10'
RDMAV_FORK_SAFE: 1
jobs:
unit_tests:
runs-on: ubuntu-22.04
steps:
- name: Checkout Repo
uses: actions/checkout@v3.3.0
- name: Setup NoisePy
uses: ./.github/actions/setup
with:
python-version: ${{env.python_version}}
mpi: 'true'
- name: pytest
run: pytest tests/. integration_tests/. --cov=noisepy.seis --cov=noisepy.monitoring
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
unit_tests_win:
runs-on: windows-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v3.3.0
- name: Setup NoisePy
uses: ./.github/actions/setup
with:
python-version: ${{env.python_version}}
mpi : 'true'
- name: pytest
run: |
set PYTHONPATH=src
pytest tests/. integration_tests/.
s1_s2:
strategy:
fail-fast: true
matrix:
python_version: ['3.9', '3.10']
method: [linear,robust, nroot, selective, auto_covariance, pws]
freq_norm: [rma]
format: [asdf]
substack: [false]
include:
- method: linear
python_version: '3.10'
freq_norm: no
format: zarr
substack: true
- method: all
python_version: '3.9'
freq_norm: phase_only
format: numpy
runs-on: ubuntu-22.04
steps:
- name: Checkout Repo
uses: actions/checkout@v3.3.0
- name: Setup NoisePy
uses: ./.github/actions/setup
with:
python-version: ${{matrix.python_version}}
- name: Test Cross-Correlation (S1)
run: |
noisepy cross_correlate \
--config tutorials/s3_anon.yml \
--raw_data_path s3://scedc-pds/continuous_waveforms/ \
--ccf_path $RUNNER_TEMP/CCF \
--networks=CI \
--start=2023-01-01 \
--end=2023-01-03 \
--stations=ARV,BAK \
--channels=BHE,BHN,BHZ \
--xml_path=s3://scedc-pds/FDSNstationXML/CI/ \
--freq_norm ${{matrix.freq_norm}} \
--stop_on_error \
--format ${{matrix.format}}
- name: Test Stacking (S2)
run: |
noisepy stack \
--ccf_path $RUNNER_TEMP/CCF \
--stack_path $RUNNER_TEMP/STACK \
--stack_method ${{matrix.method}} \
--stop_on_error \
--format ${{matrix.format}}
s1_s2_mpi:
strategy:
fail-fast: true
matrix:
python_version: ['3.10']
method: [linear]
freq_norm: [rma]
runs-on: ubuntu-22.04
steps:
- name: Checkout Repo
uses: actions/checkout@v3.3.0
- name: Setup NoisePy
uses: ./.github/actions/setup
with:
python-version: ${{matrix.python_version}}
mpi: 'true'
- name: Test Cross-Correlation (S1)
run: |
mpiexec -n 2 noisepy cross_correlate \
--config tutorials/s3_anon.yml \
--mpi \
--raw_data_path s3://scedc-pds/continuous_waveforms/ \
--ccf_path $RUNNER_TEMP/CCF \
--networks=CI \
--start=2023-01-01 \
--end=2023-01-03 \
--stations=ARV,BAK \
--channels=BHE,BHN,BHZ \
--xml_path=s3://scedc-pds/FDSNstationXML/CI/ \
--freq_norm ${{matrix.freq_norm}} \
--stop_on_error \
--format numpy
- name: Test Stacking (S2)
run: |
mpiexec -n 3 noisepy stack \
--mpi \
--ccf_path $RUNNER_TEMP/CCF \
--stack_path $RUNNER_TEMP/STACK \
--stack_method ${{matrix.method}} \
--stop_on_error \
--format numpy
s3_dates:
strategy:
fail-fast: true
matrix:
python_version: ['3.9', '3.10']
runs-on: ubuntu-22.04
steps:
- name: Checkout Repo
uses: actions/checkout@v3.3.0
- name: Setup NoisePy
uses: ./.github/actions/setup
with:
python-version: ${{matrix.python_version}}
- name: Test S3 data for a date range
run: |
noisepy cross_correlate --raw_data_path s3://scedc-pds/continuous_waveforms/ \
--ccf_path $RUNNER_TEMP/CCF_S3 --freq_norm rma \
--xml_path s3://scedc-pds/FDSNstationXML/CI/ \
--stations "SBC,RIO" --start_date 2022-02-02 --end_date 2022-02-04 \
--stop_on_error \
--config tutorials/s3_anon.yml