forked from OxWearables/biobankAccelerometerAnalysis
-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (40 loc) · 1.11 KB
/
cwa.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
# 1. Test parsing cwa
# 2. Check output epoch files haven't changed
name: cwa
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
cwa:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup python
uses: actions/setup-python@v2
with:
python-version: 3.7
- name: Setup java
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Compile java files
run: |
java -version
javac -cp accelerometer/java/JTransforms-3.1-with-dependencies.jar accelerometer/java/*.java
- name: Pip install
run: |
pip install --upgrade pip
pip install .
- name: Download necessary files
run: |
wget -P data/ http://gas.ndph.ox.ac.uk/aidend/accModels/sample.cwa.gz --quiet
- name: Processing
run: |
accProcess data/sample.cwa.gz --activityClassification f
- name: Compare epoch output
uses: tianhaoz95/[email protected]
with:
original: referenceFiles/sample-summary.json
mirror: data/sample-summary.json