Skip to content

Commit

Permalink
CI*.yml updated
Browse files Browse the repository at this point in the history
  • Loading branch information
SotaYoshida committed Mar 4, 2024
1 parent 8546b08 commit a7f839d
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
1 change: 1 addition & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ jobs:
- uses: julia-actions/julia-buildpkg@v1
- name: "Run tests"
run: |
export JULIA_PROJECT=@.
julia --project -e 'import Pkg; Pkg.test()'
build:
runs-on: ubuntu-latest
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/CI_pullrequest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ jobs:
- uses: julia-actions/julia-buildpkg@v1
- name: "Run tests"
run: |
export JULIA_PROJECT=@.
julia --project -e 'import Pkg; Pkg.test()'
# env:
# JULIA_NUM_THREADS: 2
Expand Down
8 changes: 4 additions & 4 deletions test/HFMBPT_IMSRG_test.jl
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,19 @@
end
@testset "snt & snt.bin must give identical results" begin
tsntf = replace(sntf,".snt.bin" => ".snt")
HFobj2 = hf_main(nucs,tsntf,hw,emax;return_obj=true)
HFobj2 = hf_main(nucs,tsntf,hw,emax;return_obj=true,fn_params="parameters/optional_parameters.jl")
Es2 = [HFobj2.E0, HFobj2.EMP2, HFobj2.EMP3]
@test ((HFobj1.E0-HFobj2.E0)^2 + (HFobj1.EMP2-HFobj2.EMP2)^2 + (HFobj1.EMP3-HFobj2.EMP3)^2) < 1.e-6
end
end
Eref = -4.05225276
@testset "IMSRG results under bare EM500,hw20,e2,nmesh50" begin
IMSRGobj = hf_main(nucs,sntf,hw,emax;doIMSRG=true,return_obj=true)
IMSRGobj = hf_main(nucs,sntf,hw,emax;doIMSRG=true,return_obj=true,fn_params="parameters/optional_parameters.jl")
Es = IMSRGobj.H.zerobody[1]
@test abs(Eref-Es[1]) < 1.e-6
end
@testset "VSIMSRG results under bare EM500,hw20,e2,nmesh50" begin
IMSRGobj = hf_main(nucs,sntf,hw,emax;doIMSRG=true,corenuc=core,ref="nuc",valencespace=vspace,return_obj=true)
IMSRGobj = hf_main(nucs,sntf,hw,emax;doIMSRG=true,corenuc=core,ref="nuc",valencespace=vspace,return_obj=true,fn_params="parameters/optional_parameters.jl")
Es = IMSRGobj.H.zerobody[1]
@test abs(Eref - Es[1]) < 1.e-6
end
Expand All @@ -43,7 +43,7 @@
sntf = "tbme_emn500n4lo_2n3n_srg10.0hw20emax2.snt.bin"
hw = 20
emax = 2
IMSRGobj = hf_main(nucs,sntf,hw,emax;doIMSRG=true,Operators=["Rp2"],return_obj=true)
IMSRGobj = hf_main(nucs,sntf,hw,emax;doIMSRG=true,Operators=["Rp2"],return_obj=true,fn_params="parameters/optional_parameters.jl")
Rp2_ref = 1.559825^2
@test abs(IMSRGobj.ExpectationValues["Rp2"] - Rp2_ref)^2 < 1.e-6
end
Expand Down
2 changes: 1 addition & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ using Printf

@testset "NuclearToolkit.jl" begin
println("pwd: ", pwd())
println("readdir() ",readdir())
println("readdir() ",readdir("interaction_file"))

include("chiEFTint_test.jl")
include("HFMBPT_IMSRG_test.jl")
Expand Down

0 comments on commit a7f839d

Please sign in to comment.