Skip to content

Commit

Permalink
Ignore environment changes in CI
Browse files Browse the repository at this point in the history
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_<PID>) that live the entire Julia session and make the environment appear modified. 

Fixes JuliaLinearAlgebra#130
  • Loading branch information
imciner2 authored Aug 9, 2023
1 parent d439e4f commit 4c55af6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit 4c55af6

Please sign in to comment.