Skip to content

Commit

Permalink
workflows: test more python versions
Browse files Browse the repository at this point in the history
  • Loading branch information
chanshing committed May 9, 2023
1 parent 555dcc0 commit 78a8a4b
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 31 deletions.
64 changes: 34 additions & 30 deletions .github/workflows/cwa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,35 +12,39 @@ on:
jobs:
cwa:

runs-on: ubuntu-latest
runs-on: ${{matrix.os}}
strategy:
matrix:
os: [ubuntu-latest]
python-version: ["3.7", "3.8", "3.9", "3.10"]

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 src/accelerometer/java/JTransforms-3.1-with-dependencies.jar src/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
- 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@v1
with:
java-version: 1.8

- name: Compile java files
run: |
java -version
javac -cp src/accelerometer/java/JTransforms-3.1-with-dependencies.jar src/accelerometer/java/*.java
- name: Pip install
run: |
python -m pip install --upgrade pip
python -m 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
2 changes: 1 addition & 1 deletion .github/workflows/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
python-version: [3.7, 3.8] # pandas dropped support for 3.6!
python-version: ["3.7", "3.8", "3.9", "3.10"]

steps:
- uses: actions/checkout@v2
Expand Down

0 comments on commit 78a8a4b

Please sign in to comment.