Skip to content

Commit

Permalink
Actually make sure conda env dir is set on Buildkite CI (#1392)
Browse files Browse the repository at this point in the history
Actually make sure conda env dir is set on Buildkite CI

The original fix was incorrect due to https://buildkite.com/docs/pipelines/environment-variables#runtime-variable-interpolation, but happened to pass by coincidence.
  • Loading branch information
ToucheSir authored Mar 16, 2023
1 parent 04b527b commit d2b3b02
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ steps:
version: "1.6"
- JuliaCI/julia-test#v1: ~
command:
- mkdir -p "${JULIA_DEPOT_PATH}/conda/3/x86_64"
- mkdir -p "$${JULIA_DEPOT_PATH}/conda/3/x86_64"
agents:
queue: "juliagpu"
cuda: "*"
Expand All @@ -17,7 +17,7 @@ steps:
version: "1"
- JuliaCI/julia-test#v1: ~
command:
- mkdir -p "${JULIA_DEPOT_PATH}/conda/3/x86_64"
- mkdir -p "$${JULIA_DEPOT_PATH}/conda/3/x86_64"
agents:
queue: "juliagpu"
cuda: "*"
Expand Down
3 changes: 2 additions & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ julia = "1.6"

[extras]
Colors = "5ae59095-9a9b-59fe-a467-6f913c188581"
Conda = "8f4d0f93-b110-5947-807f-2305c1781a2d"
CUDA = "052768ef-5323-5732-b1bb-66c8b64840ba"
ChainRulesTestUtils = "cdddcdb0-9152-4a09-a978-84456f9df70a"
Distances = "b4f34e82-e78d-54a5-968a-f98e89d6e8f7"
Expand All @@ -71,4 +72,4 @@ Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
Tracker = "9f7883ad-71c0-57eb-9f7f-b5c9e6d3789c"

[targets]
test = ["ChainRulesTestUtils", "CUDA", "Distances", "FFTW", "FiniteDifferences", "PyCall", "Test"]
test = ["ChainRulesTestUtils", "Conda", "CUDA", "Distances", "FFTW", "FiniteDifferences", "PyCall", "Test"]
4 changes: 4 additions & 0 deletions test/features.jl
Original file line number Diff line number Diff line change
Expand Up @@ -682,6 +682,10 @@ end
end

@testset "PyCall custom @adjoint" begin
# Trigger Python install if required. Required for Buildkite CI!
import Conda
Conda.list()

import PyCall
math = PyCall.pyimport("math")
pysin(x) = math.sin(x)
Expand Down

0 comments on commit d2b3b02

Please sign in to comment.