Skip to content

Commit 2fab9cb

Browse files
authored
Merge pull request #3 from JuliaGeo/fix/windows-ci
Fix CI on Windows.
2 parents 38f9eb8 + fce83df commit 2fab9cb

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

test/runtests.jl

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,6 @@ using GeoFormatTypes
77
using DataFrames
88
using Extents
99

10-
# ENV["JULIA_CONDAPKG_OFFLINE"] = true # for running locally
11-
ENV["JULIA_CONDAPKG_ENV"] = joinpath(@__DIR__, ".cpenv")
12-
using PythonCall
13-
feather = pyimport("pyarrow.feather")
14-
1510
mkpath(joinpath(@__DIR__, "data/write"))
1611

1712
@testset "GeoArrow.jl" begin
@@ -49,6 +44,19 @@ mkpath(joinpath(@__DIR__, "data/write"))
4944
end
5045
end
5146
@testset "Python" begin
47+
Sys.iswindows() && return # doesn't work on Windows
48+
49+
# ENV["JULIA_CONDAPKG_OFFLINE"] = true # for running locally
50+
ENV["JULIA_CONDAPKG_ENV"] = joinpath(@__DIR__, ".cpenv")
51+
try
52+
using PythonCall
53+
catch e
54+
@error "PythonCall not available:"
55+
@error e
56+
return
57+
end
58+
feather = pyimport("pyarrow.feather")
59+
5260
for arrowfn in filter(endswith("arrow"), readdir("data", join=true))
5361
@testset "$arrowfn" begin
5462
t = GeoArrow.read(arrowfn)

0 commit comments

Comments
 (0)