From 17ba2fadc981e6ba1119c2406889ef7b846507fa Mon Sep 17 00:00:00 2001 From: T Ehrhardt Date: Tue, 27 Aug 2024 16:40:36 +0200 Subject: [PATCH] more informative test logging output and switch to fp64 in workflow --- .github/workflows/pythonpackage.yml | 4 ++-- pisa_tests/test_services.py | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pythonpackage.yml b/.github/workflows/pythonpackage.yml index b248d8c3e..d623fc4a8 100644 --- a/.github/workflows/pythonpackage.yml +++ b/.github/workflows/pythonpackage.yml @@ -38,9 +38,9 @@ jobs: run: | pip install pytest PISA_FTYPE=fp32 PISA_TARGET=cpu MPLBACKEND=agg ./pisa_tests/test_example_pipelines.py -v - - name: Test PISA services + - name: Test PISA services, double precision run: | - PISA_FTYPE=fp32 PISA_TARGET=cpu MPLBACKEND=agg ./pisa_tests/test_services.py -v + PISA_FTYPE=fp64 PISA_TARGET=cpu MPLBACKEND=agg ./pisa_tests/test_services.py -v - name: Test PISA imports and unit tests, double precision run: | pip install pytest diff --git a/pisa_tests/test_services.py b/pisa_tests/test_services.py index 1e99601bb..dec37c793 100755 --- a/pisa_tests/test_services.py +++ b/pisa_tests/test_services.py @@ -232,7 +232,7 @@ def test_services( ) continue - logging.debug(PFX + f"Starting test for service {stage_dot_service}...") + logging.info(PFX + f"Starting test for service {stage_dot_service}...") ntries += 1 # if service module import successful, try to initialise the service @@ -313,6 +313,7 @@ def test_services( #if service.data is not None: # we should never be in this state here if service.calc_mode is None: + logging.debug(PFX + "Setting calc_mode ...") try: service.calc_mode = 'events' except ValueError: @@ -330,6 +331,7 @@ def test_services( continue if service.apply_mode is None: + logging.debug(PFX + "Setting apply_mode ...") try: service.apply_mode = 'events' except ValueError: @@ -357,6 +359,7 @@ def test_services( continue try: + logging.debug(PFX + "Setting up and running service...") run_service_test(service) logging.info(PFX + f"{stage_dot_service} passed the test.") nsuccesses += 1