diff --git a/.github/workflows/matlab.yml b/.github/workflows/matlab.yml index 35a5e17..69ebcfc 100644 --- a/.github/workflows/matlab.yml +++ b/.github/workflows/matlab.yml @@ -37,5 +37,5 @@ jobs: source-folder: 'onc' env: TOKEN: ${{ secrets.TOKEN }} - ONC_ENV: true + ONC_ENV: 'prod' diff --git a/onc/tests/globals.m b/onc/tests/globals.m index daa37ac..be0c5a7 100644 --- a/onc/tests/globals.m +++ b/onc/tests/globals.m @@ -22,7 +22,9 @@ % get environment from ONC_ENV or use QA as default config.production = getenv('ONC_ENV'); - if isempty(config.production) + if strcmp(config.production, 'prod') + config.production = true; + else config.production = false; end % Set and save config