From 78a8a4b47ae0078dd429abf91916e5d1763b3159 Mon Sep 17 00:00:00 2001 From: Shing Chan Date: Tue, 9 May 2023 21:09:07 +0100 Subject: [PATCH] workflows: test more python versions --- .github/workflows/cwa.yml | 64 +++++++++++++++++++---------------- .github/workflows/install.yml | 2 +- 2 files changed, 35 insertions(+), 31 deletions(-) diff --git a/.github/workflows/cwa.yml b/.github/workflows/cwa.yml index af257cf9..9c9d1839 100644 --- a/.github/workflows/cwa.yml +++ b/.github/workflows/cwa.yml @@ -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 diff --git a/.github/workflows/install.yml b/.github/workflows/install.yml index 89793310..bcf9fa2b 100644 --- a/.github/workflows/install.yml +++ b/.github/workflows/install.yml @@ -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