Skip to content

Commit

Permalink
Fix CI and test failures
Browse files Browse the repository at this point in the history
  • Loading branch information
ptiede committed Aug 24, 2023
1 parent 6690f32 commit 11a19dc
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/Documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ jobs:
sudo apt-get install libhdf5-dev
sudo apt-get install --reinstall libxcb-xinerama0
sudo apt-get install qtbase5-dev
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Setup python
uses: actions/setup-python@v1
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
architecture: ${{ matrix.arch }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ jobs:
sudo apt-get update
sudo apt-get install libhdf5-dev
sudo apt-get install --reinstall libxcb-xinerama0
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Setup python
uses: actions/setup-python@v1
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
architecture: ${{ matrix.arch }}
Expand All @@ -51,7 +51,7 @@ jobs:
version: ${{ matrix.version }}
arch: ${{ matrix.arch }}
- uses: julia-actions/julia-buildpkg@v1
- uses: actions/cache@v1
- uses: actions/cache@v3
env:
cache-name: cache-artifacts
with:
Expand Down
3 changes: 2 additions & 1 deletion lib/ComradeOptimization/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ OptimizationOptimJL = "36348300-93cb-4f02-beb5-3c3902f8871e"
Pyehtim = "3d61700d-6e5b-419a-8e22-9c066cf00468"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
VLBIImagePriors = "b1ba175b-8447-452c-b961-7db2d6f7a029"
Zygote = "e88e6eb3-aa80-5325-afca-941959d7151f"

[targets]
test = ["Test", "OptimizationBBO", "OptimizationOptimJL", "Pyehtim", "Distributions", "VLBIImagePriors"]
test = ["Test", "OptimizationBBO", "OptimizationOptimJL", "Pyehtim", "Distributions", "VLBIImagePriors", "Zygote"]
1 change: 1 addition & 0 deletions lib/ComradeOptimization/test/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using Pyehtim, Comrade, ComradeOptimization, OptimizationOptimJL, Distributions, VLBIImagePriors
using Zygote
using Test

include(joinpath(@__DIR__, "../../../test/test_util.jl"))
Expand Down
3 changes: 2 additions & 1 deletion test/Core/bayes.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ using Plots
using LogDensityProblems
using LogDensityProblemsAD
using Pyehtim
using Zygote



Expand Down Expand Up @@ -33,7 +34,7 @@ using Pyehtim
@test dimension(post) == dimension(tpostf)
@test dimension(post) == dimension(tpostc)

f = OptimizationFunction(tpostc, Optimization.Zygote())
f = OptimizationFunction(tpostc, Optimization.AutoZygote())
x0 = [ 0.1,
0.4,
0.5,
Expand Down

0 comments on commit 11a19dc

Please sign in to comment.