diff --git a/.github/workflows/yaml-conversion.yml b/.github/workflows/yaml-conversion.yml index 894a3d57..83d05d19 100644 --- a/.github/workflows/yaml-conversion.yml +++ b/.github/workflows/yaml-conversion.yml @@ -13,6 +13,4 @@ jobs: - name: Run conversion script run: | - set -e /usr/local/bin/matlab -nodisplay -nosplash -nodesktop -r "addpath(genpath('.')); testYamlConversion" - exit 1 diff --git a/code/test/testYamlConversion.m b/code/test/testYamlConversion.m index c00d62c5..4d261dee 100644 --- a/code/test/testYamlConversion.m +++ b/code/test/testYamlConversion.m @@ -27,13 +27,14 @@ % compare the imported model from yaml with the original one if ~isequal(model, importedHumanGEM) - error('::error::Re-imported model is diffrent from export'); + disp('::error::Re-imported model is diffrent from export'); exit(1); end - - % model conversion between Matlab and Yaml files is successful - disp('The conversion was successful.') catch - error('::error::There are problems during the conversion import and export'); + disp('::error::There are problems during the conversion import and export'); exit(1) end + +% model conversion between Matlab and Yaml files is successful +disp('The conversion was successful.') +exit(0) \ No newline at end of file