We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b861036 commit a8db0feCopy full SHA for a8db0fe
test/runtests.jl
@@ -1,3 +1,12 @@
1
+if get(ENV, "CI", "") != ""
2
+ # In CI we need to rebuild PyCall otherwise it fails a precompilation trying to use
3
+ # an interpreter that doesn't exist, presumably as a result of cacheing between CI
4
+ # runs.
5
+ using Pkg
6
+ ENV["PYTHON"] = Sys.which("python")
7
+ Pkg.build("PyCall")
8
+end
9
+
10
using TestItemRunner
11
12
@run_package_tests
@@ -6,7 +15,7 @@ using TestItemRunner
15
using PythonCall: PythonCall
16
using Pkg: Pkg
17
ENV["PYTHON"] = PythonCall.python_executable_path()
- @info "Building PyCall..." ENV["PYTHON"]
18
+ @info "Building PyCall" python = ENV["PYTHON"]
19
Pkg.build("PyCall")
20
using PyCall
21
end
0 commit comments