diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.yml index 3466bd1..12b84e6 100644 --- a/.github/workflows/pipeline.yml +++ b/.github/workflows/pipeline.yml @@ -41,6 +41,7 @@ jobs: - name: Test Wheel install and import run: | pip install wheel + which pip python setup.py bdist_wheel cd dist pip install CADET_Python*.whl @@ -49,5 +50,6 @@ jobs: run: | pip install .[testing] mamba install cadet + which cadet-cli mamba list pytest tests --rootdir=tests -m "not slow" diff --git a/tests/test_SMB.py b/tests/test_SMB.py index 7b92359..07a7e22 100644 --- a/tests/test_SMB.py +++ b/tests/test_SMB.py @@ -31,11 +31,11 @@ def gen_connections(units, cycle_size, size, step, flows, flows_static): idx = 0 for io in ios[:2]: temp.append([io[0], io[1], -1, -1, flows_static[idx]]) - idx += 1; + idx += 1 # outputs for io in ios[2:]: temp.append([io[1], io[0], -1, -1, flows_static[idx]]) - idx += 1; + idx += 1 return numpy.array(temp) @@ -243,7 +243,10 @@ def plotSimulation(simulation): @pytest.mark.slow def test_SMB(): + from datetime import datetime + start = datetime.now() sim = main() + print(datetime.now() - start) assert isinstance(sim.root.output.solution.unit_003.solution_outlet_comp_001, numpy.ndarray) assert isinstance(sim.root.output.solution.unit_003.solution_outlet_comp_000, numpy.ndarray)