Skip to content

Commit

Permalink
using internal conda environment for python-related CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Krastanov committed Jan 22, 2024
1 parent 8911e08 commit bb70ec8
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 9 deletions.
20 changes: 11 additions & 9 deletions .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
env:
CODECOV_TOKEN: adb3f22a-231a-4f7b-8ed4-7c6c56453cbe
JULIA_NUM_THREADS: auto
PYTHON: ""
PYCALL_DEBUG_BUILD: yes

steps:
- label: "CI Buildkite"
Expand All @@ -11,12 +13,12 @@ steps:
- JuliaCI/julia-test#v1: ~
- JuliaCI/julia-coverage#v1:
codecov: true
command: |
julia -e '
using Pkg
Pkg.add("QuantumSavory")
Pkg.build("QuantumSavory")
Pkg.test("QuantumSavory")
Pkg.add("BPGates")
Pkg.build("BPGates")
Pkg.test("BPGates")'
# command: |
# julia -e '
# using Pkg
# Pkg.add("QuantumSavory")
# Pkg.build("QuantumSavory")
# Pkg.test("QuantumSavory")
# Pkg.add("BPGates")
# Pkg.build("BPGates")
# Pkg.test("BPGates")'
3 changes: 3 additions & 0 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ name: Performance tracking
on:
pull_request:

env:
PYTHON: ~

jobs:
performance-tracking:
runs-on: ubuntu-latest
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/ci-julia-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ on:
branches: [master, main]
tags: ["*"]
pull_request:
env:
PYTHON: ~
jobs:
test:
name: Julia ${{ matrix.version }} - t=${{ matrix.threads }} - jet=${{ matrix.jet }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ on:
branches: [master, main]
tags: ["*"]
pull_request:
env:
PYTHON: ~
jobs:
test:
name: Julia ${{ matrix.version }} - t=${{ matrix.threads }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/downgrade.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ on:
branches: [master, main]
paths-ignore:
- 'docs/**'
env:
PYTHON: ~
jobs:
test:
runs-on: ubuntu-latest
Expand Down
1 change: 1 addition & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ macro doset(descr)
end

println("Starting tests with $(Threads.nthreads()) threads out of `Sys.CPU_THREADS = $(Sys.CPU_THREADS)`...")
println("ENV[\"PYTHON\"] = \"$(get(ENV,"PYTHON",nothing))\"")

# in order to run the gpu tests automatically set GPU_TESTS to true in the .env file
if ENV["GPU_TESTS"] == "true"
Expand Down

0 comments on commit bb70ec8

Please sign in to comment.