Skip to content

Bump m2r2 from 0.3.2 to 0.3.3.post2 #768

Bump m2r2 from 0.3.2 to 0.3.3.post2

Bump m2r2 from 0.3.2 to 0.3.3.post2 #768

Workflow file for this run

name: pytest
on: [push, pull_request]
jobs:
collect_references:
name: collect_references
runs-on: ubuntu-latest
steps:
- name: checkout repository
uses: actions/checkout@v4
with:
path: k-Wave-python
- name: checkout reference k-Wave repo
uses: actions/checkout@v4
with:
repository: ucl-bug/k-wave
path: k-wave
ref: v1.4.0
- name: setup MATLAB
uses: matlab-actions/setup-matlab@v1
- name: run reference generation
uses: matlab-actions/run-command@v1
with:
command: |
ls;
pwd;
if exist('k-wave/k-Wave'); ls 'k-wave/k-Wave'; end;
addpath('k-Wave-python','k-wave/k-Wave');
cd k-Wave-python/tests/matlab_test_data_collectors;
run_all_collectors;
- name: compress artifact
uses: a7ul/[email protected]
with:
command: c
cwd: ./k-Wave-python/tests/matlab_test_data_collectors/matlab_collectors/
files: |
./collectedValues
outPath: collectedValues.tar.gz
- name: upload reference values artifact
uses: actions/upload-artifact@v3
with:
name: collectedValues
path: collectedValues.tar.gz
test:
needs: collect_references
strategy:
matrix:
os: [ "windows-latest", "ubuntu-latest" ] #, "macos-latest"]
python-version: [ "3.8", "3.9", "3.10" ]
runs-on: ${{matrix.os}}
steps:
- uses: actions/checkout@v4
- name: Download collectedValues
uses: actions/download-artifact@v3
with:
name: collectedValues
path: tests/matlab_test_data_collectors/python_testers/
- name: unpack collectedValues
uses: a7ul/[email protected]
with:
command: x
cwd: ./tests/matlab_test_data_collectors/python_testers/
files: ./tests/matlab_test_data_collectors/python_testers/collectedValues.tar.gz
- name: where are the files?
run: |
ls ./tests/matlab_test_data_collectors/python_testers/
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
pip install '.[test]'
- name: Test with pytest
run: |
pytest
# - name: Lint with flake8
# run: |
# # stop the build if there are Python syntax errors or undefined names
# flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
# flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics