ci: use ubuntu 20.04 for py37 runs (ubuntu-latest is now 24.04 which … #200
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: cwa | |
on: | |
push: | |
branches: | |
- '**' | |
pull_request: | |
jobs: | |
cwa: | |
runs-on: ${{matrix.os}} | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
python-version: ["3.7", "3.8", "3.9", "3.10"] | |
exclude: # python <= 3.7 no longer supported in latest operating systems | |
- python-version: "3.7" | |
include: # use older ubuntu for python 3.7 | |
- python-version: "3.7" | |
os: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Setup java | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'zulu' | |
java-version: '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 |