refactor(read_device): skip return calibration coefficients by default #108
Workflow file for this run
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-windows | |
on: | |
push: | |
branches: | |
- '**' | |
pull_request: | |
jobs: | |
cwa-windows: | |
runs-on: ${{matrix.os}} | |
strategy: | |
matrix: | |
os: [windows-latest] | |
python-version: ["3.8", "3.9", "3.10", "3.11"] | |
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 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 file | |
run: | | |
mkdir tests\data | |
curl --output-dir tests\data\ -O https://wearables-files.ndph.ox.ac.uk/files/data/samples/ax3/tiny-sample.cwa.gz | |
curl --output-dir tests\data\ -O https://wearables-files.ndph.ox.ac.uk/files/actipy/tests/data/read.csv.gz | |
curl --output-dir tests\data\ -O https://wearables-files.ndph.ox.ac.uk/files/actipy/tests/data/lowpass.csv.gz | |
curl --output-dir tests\data\ -O https://wearables-files.ndph.ox.ac.uk/files/actipy/tests/data/calib.csv.gz | |
curl --output-dir tests\data\ -O https://wearables-files.ndph.ox.ac.uk/files/actipy/tests/data/nonwear.csv.gz | |
curl --output-dir tests\data\ -O https://wearables-files.ndph.ox.ac.uk/files/actipy/tests/data/resample.csv.gz | |
copy tests\data\tiny-sample.cwa.gz tests\data\tiny-sample1.cwa.gz # make copies for multiprocessing test | |
copy tests\data\tiny-sample.cwa.gz tests\data\tiny-sample2.cwa.gz | |
- name: Test with pytest | |
run: | | |
echo "########## NOTE ##########" | |
echo "Windows access violation error can be safely ignored. See: https://github.com/jpype-project/jpype/issues/561" | |
pytest tests |