-
Notifications
You must be signed in to change notification settings - Fork 8
56 lines (46 loc) · 1.82 KB
/
cwa.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
name: cwa
on:
push:
branches:
- '**'
pull_request:
jobs:
cwa:
runs-on: ${{matrix.os}}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
python-version: ["3.8", "3.9", "3.10", "3.11"]
steps:
- uses: actions/checkout@v3
- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Setup java
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '8'
- name: Compile java files
run: |
java -version
javac src/actipy/*.java
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install .
python -m pip install pytest joblib
- name: Download test files
run: |
wget -P tests/data/ https://wearables-files.ndph.ox.ac.uk/files/data/samples/ax3/tiny-sample.cwa.gz --quiet
wget -P tests/data/ https://wearables-files.ndph.ox.ac.uk/files/actipy/tests/data/read.pkl.gz --quiet
wget -P tests/data/ https://wearables-files.ndph.ox.ac.uk/files/actipy/tests/data/lowpass.pkl.gz --quiet
wget -P tests/data/ https://wearables-files.ndph.ox.ac.uk/files/actipy/tests/data/calib.pkl.gz --quiet
wget -P tests/data/ https://wearables-files.ndph.ox.ac.uk/files/actipy/tests/data/nonwear.pkl.gz --quiet
wget -P tests/data/ https://wearables-files.ndph.ox.ac.uk/files/actipy/tests/data/resample.pkl.gz --quiet
cp tests/data/tiny-sample.cwa.gz tests/data/tiny-sample1.cwa.gz # make copies for multiprocessing test
cp tests/data/tiny-sample.cwa.gz tests/data/tiny-sample2.cwa.gz
- name: Test with pytest
run: |
pytest tests/