ready for production

This commit is contained in:
Martin Diehl 2021-09-02 08:51:45 +02:00
parent 2b9d416734
commit 727cc9da12
2 changed files with 5 additions and 6 deletions

View File

@ -1,4 +1,4 @@
name: Test Processing Tools
name: Test Python Library
on: [push]
jobs:
@ -23,7 +23,7 @@ jobs:
- name: Install and run unit tests
run: |
python -m pip install ./python --no-deps -vv --use-feature=in-tree-build
pytest python
COLUMNS=256 pytest python
apt:
@ -38,10 +38,9 @@ jobs:
- name: Install dependencies
run: >
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
- name: Run unit tests
run: |
export PYTHONPATH=${PWD}/python
export COLUMNS=256
python -m pytest python
COLUMNS=256 python -m pytest python

View File

@ -114,7 +114,7 @@ class TestResult:
assert np.allclose(in_memory,in_file)
@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):
if mode == 'direct':