Skip to content

Commit

Permalink
setup Python downstream testing as a separate test group
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisRackauckas committed Oct 1, 2023
1 parent f5c538c commit a07934b
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ jobs:
group:
- Core
- Downstream
- Python
version:
- '1'
steps:
Expand Down
2 changes: 0 additions & 2 deletions test/downstream/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ ModelingToolkit = "961ee093-0014-501f-94e3-6117800e7a78"
Optimization = "7f7a1694-90dd-40f0-9382-eb1efda571ba"
OptimizationOptimJL = "36348300-93cb-4f02-beb5-3c3902f8871e"
OrdinaryDiffEq = "1dea7af3-3e70-54e6-95c3-0bf5283fa5ed"
PyCall = "438e738f-606a-5dbb-bf0a-cddfbfd45ab0"
SciMLBase = "0bca4576-84f4-4d90-8ffe-ffa030f20462"
SciMLSensitivity = "1ed8b502-d754-442c-8d5d-10ac956f44a1"
Sundials = "c3572dad-4567-51f8-b174-8c6c989267f4"
Expand All @@ -14,7 +13,6 @@ Zygote = "e88e6eb3-aa80-5325-afca-941959d7151f"
[compat]
BoundaryValueDiffEq = "5"
ModelingToolkit = "8.37"
PyCall = "1.96"
Optimization = "3"
OptimizationOptimJL = "0.1"
OrdinaryDiffEq = "6.33"
Expand Down
11 changes: 11 additions & 0 deletions test/python/Project.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[deps]
Conda = "8f4d0f93-b110-5947-807f-2305c1781a2d"
OrdinaryDiffEq = "1dea7af3-3e70-54e6-95c3-0bf5283fa5ed"
PyCall = "438e738f-606a-5dbb-bf0a-cddfbfd45ab0"
SciMLBase = "0bca4576-84f4-4d90-8ffe-ffa030f20462"

[compat]
Conda = "1.9"
OrdinaryDiffEq = "6.33"
PyCall = "1.96"
SciMLBase = "2"
3 changes: 3 additions & 0 deletions test/downstream/pycall.jl → test/python/pycall.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
using PyCall, SciMLBase, OrdinaryDiffEq
import Conda
Conda.pip_interop(true)
Conda.pip("install", "julia")

@testset "numargs" begin
py"""
Expand Down
5 changes: 4 additions & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,11 @@ end
@time @safetestset "Autodiff Remake" begin
include("downstream/remake_autodiff.jl")
end
end

if !is_APPVEYOR && GROUP == "Python"
@time @safetestset "PyCall" begin
include("downstream/pycall.jl")
include("python/pycall.jl")
end
end
end

0 comments on commit a07934b

Please sign in to comment.