ready for production
This commit is contained in:
parent
2b9d416734
commit
727cc9da12
|
@ -1,4 +1,4 @@
|
||||||
name: Test Processing Tools
|
name: Test Python Library
|
||||||
on: [push]
|
on: [push]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
@ -23,7 +23,7 @@ jobs:
|
||||||
- name: Install and run unit tests
|
- name: Install and run unit tests
|
||||||
run: |
|
run: |
|
||||||
python -m pip install ./python --no-deps -vv --use-feature=in-tree-build
|
python -m pip install ./python --no-deps -vv --use-feature=in-tree-build
|
||||||
pytest python
|
COLUMNS=256 pytest python
|
||||||
|
|
||||||
apt:
|
apt:
|
||||||
|
|
||||||
|
@ -38,10 +38,9 @@ jobs:
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: >
|
run: >
|
||||||
sudo apt-get update &&
|
sudo apt-get update &&
|
||||||
sudo apt-get install python3-pip python3-pytest python3-pandas python3-scipy
|
sudo apt-get install python3-pip python3-pytest python3-pandas python3-scipy
|
||||||
python3-h5py python3-vtk7 python3-matplotlib python3-yaml -y
|
python3-h5py python3-vtk7 python3-matplotlib python3-yaml -y
|
||||||
- name: Run unit tests
|
- name: Run unit tests
|
||||||
run: |
|
run: |
|
||||||
export PYTHONPATH=${PWD}/python
|
export PYTHONPATH=${PWD}/python
|
||||||
export COLUMNS=256
|
COLUMNS=256 python -m pytest python
|
||||||
python -m pytest python
|
|
|
@ -114,7 +114,7 @@ class TestResult:
|
||||||
assert np.allclose(in_memory,in_file)
|
assert np.allclose(in_memory,in_file)
|
||||||
|
|
||||||
@pytest.mark.parametrize('mode',
|
@pytest.mark.parametrize('mode',
|
||||||
['direct',pytest.param('function',marks=pytest.mark.xfail(sys.platform=="darwin",reason='n/a'))])
|
['direct',pytest.param('function',marks=pytest.mark.xfail(sys.platform=='darwin',reason='n/a'))])
|
||||||
def test_add_calculation(self,default,tmp_path,mode):
|
def test_add_calculation(self,default,tmp_path,mode):
|
||||||
|
|
||||||
if mode == 'direct':
|
if mode == 'direct':
|
||||||
|
|
Loading…
Reference in New Issue