forked from OxWearables/biobankAccelerometerAnalysis
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (32 loc) · 1017 Bytes
/
install.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
# Test installation for different OS (Ubuntu, Mac) and Python versions (3.7, 3.8)
name: install
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
install:
runs-on: ${{matrix.os}}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
python-version: [3.7, 3.8] # pandas dropped support for 3.6!
steps:
- uses: actions/checkout@v2
- name: Setup java
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Compile java files
run: javac -cp accelerometer/java/JTransforms-3.1-with-dependencies.jar accelerometer/java/*.java
- name: Setup python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Pip install
run: |
pip install --upgrade pip
pip install .
- name: Import package and print version
run: python -c "import accelerometer; print(accelerometer.__version__)"