From 4c55af6f229739342c951f599e36216e09e602b4 Mon Sep 17 00:00:00 2001 From: Ian McInerney Date: Wed, 9 Aug 2023 22:29:06 +0100 Subject: [PATCH] Ignore environment changes in CI The test suite needs to ignore any changes to the environment because loading MKL's shared library on some platforms (such as Windows) can create environment variables for OpenMP (e.g. __KMP_REGISTERED_LIB_) that live the entire Julia session and make the environment appear modified. Fixes #130 --- .github/workflows/ci.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2223614..3fd2d18 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -53,3 +53,6 @@ jobs: Pkg.develop(PackageSpec(path=pwd())) Pkg.build("MKL"; verbose=true) - uses: julia-actions/julia-runtest@latest + env: + # Loading MKL during the tests can create an environment variable for OpenMP that is visible after the tests (#130) + JULIA_TEST_CHECK_MUTATED_ENV: "false"