Skip to content

Commit

Permalink
ITensorMPS update, improve CI workflow (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
emstoudenmire authored May 15, 2024
1 parent feef7ff commit 27e04c0
Show file tree
Hide file tree
Showing 14 changed files with 22 additions and 15 deletions.
25 changes: 14 additions & 11 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,19 +36,22 @@ jobs:
version: ${{ matrix.version }}
arch: ${{ matrix.arch }}
- uses: julia-actions/cache@v2
env:
cache-name: cache-artifacts
with:
path: ~/.julia/artifacts
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
restore-keys: |
${{ runner.os }}-test-${{ env.cache-name }}-
${{ runner.os }}-test-
${{ runner.os }}-
- run: sudo apt-get update && sudo apt-get install -y xorg-dev mesa-utils xvfb libgl1 freeglut3-dev libxrandr-dev libxinerama-dev libxcursor-dev libxi-dev libxext-dev
- name: Install Julia dependencies and run tests
run: |
JULIA_REFERENCETESTS_UPDATE=true DISPLAY=:0 xvfb-run -s '-screen 0 1024x768x24' julia --depwarn=yes -e 'using Pkg; Pkg.activate(temp=true); Pkg.develop(path="."); Pkg.test("ITensorGLMakie")'
id: referencetests
continue-on-error: true
run: >
DISPLAY=:0 xvfb-run -s '-screen 0 1024x768x24' julia --depwarn=yes -e 'using Pkg; Pkg.activate(temp=true); Pkg.Registry.update(); Pkg.update(); Pkg.develop(path="."); Pkg.test("ITensorGLMakie")'
&& echo "TESTS_SUCCESSFUL=true" >> $GITHUB_ENV
- name: Upload test Artifacts
uses: actions/upload-artifact@v4
with:
name: ReferenceImages_ITensorGLMakie_${{ matrix.version }}
path: |
./test/references/
- name: Fail after artifacts if tests failed
if: ${{ env.TESTS_SUCCESSFUL != 'true' }}
run: exit 1
- uses: julia-actions/julia-processcoverage@v1
- uses: codecov/codecov-action@v4
with:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
.*.swp
.DS_Store
Manifest.toml
4 changes: 1 addition & 3 deletions docs/make.jl
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
using ITensorGLMakie
using Documenter

DocMeta.setdocmeta!(
ITensorGLMakie, :DocTestSetup, :(using ITensorGLMakie); recursive=true
)
DocMeta.setdocmeta!(ITensorGLMakie, :DocTestSetup, :(using ITensorGLMakie); recursive=true)

makedocs(;
modules=[ITensorGLMakie],
Expand Down
1 change: 1 addition & 0 deletions examples/ex_qn_mps.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using ITensors
using ITensorMPS
using ITensorGLMakie

s = siteinds("S=1/2", 5; conserve_qns=true)
Expand Down
1 change: 1 addition & 0 deletions examples/ex_quantum_circuit.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using ITensors
using ITensorMPS
using ITensorGLMakie
using LayeredLayouts
using Graphs
Expand Down
1 change: 1 addition & 0 deletions examples/notest_ex_2d_circuit.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using ITensors
using ITensorMPS
using ITensorGLMakie
using Graphs
using PastaQ: randomcircuit
Expand Down
1 change: 1 addition & 0 deletions examples/notest_ex_qft_circuit.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using ITensors
using ITensorMPS
using ITensorGLMakie
using Graphs
using PastaQ: qft
Expand Down
2 changes: 1 addition & 1 deletion src/ITensorGLMakie.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ using GLMakie

@reexport using ITensorMakie

end # module
end
1 change: 1 addition & 0 deletions test/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
GeometryBasics = "5c1252a2-5f33-56bf-86c9-59e7332b4326"
Graphs = "86223c79-3864-5bf0-83f7-82e725a168b6"
ITensorGLMakie = "3f718f31-6db8-4f43-a433-67cb5c73363e"
ITensorMPS = "0d1a4710-d33b-49a5-8f18-73bdf49b47e2"
ITensors = "9136182c-28ba-11e9-034c-db9fb085ebd5"
LayeredLayouts = "f4a74d36-062a-4d48-97cd-1356bad1de4e"
NDTensors = "23ae76d9-e61a-49c4-8f12-3f1a16adf9cf"
Expand Down
Binary file modified test/references/R.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified test/references/R1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified test/references/R2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified test/references/T.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified test/references/tn.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 27e04c0

Please sign in to comment.