Skip to content

Commit 95d46a7

Browse files
committed
update CI, add SU3 to tests
1 parent b64d5a4 commit 95d46a7

File tree

6 files changed

+49
-17
lines changed

6 files changed

+49
-17
lines changed

Diff for: .github/workflows/TagBot.yml

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ on:
33
issue_comment:
44
types:
55
- created
6+
workflow_dispatch:
67
jobs:
78
TagBot:
89
if: github.event_name == 'workflow_dispatch' || github.actor == 'JuliaTagBot'

Diff for: .github/workflows/ci-julia-nightly.yml

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: CI (Julia nightly)
2+
on:
3+
- push
4+
- pull_request
5+
jobs:
6+
test:
7+
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }}
8+
runs-on: ${{ matrix.os }}
9+
strategy:
10+
fail-fast: false
11+
matrix:
12+
version:
13+
- 'nightly'
14+
os:
15+
- ubuntu-latest
16+
- macOS-latest
17+
- windows-latest
18+
arch:
19+
- x64
20+
steps:
21+
- uses: actions/checkout@v2
22+
- uses: julia-actions/setup-julia@v1
23+
with:
24+
version: ${{ matrix.version }}
25+
arch: ${{ matrix.arch }}
26+
- uses: julia-actions/julia-buildpkg@latest
27+
- uses: julia-actions/julia-runtest@latest
28+
env:
29+
JULIA_NUM_THREADS: 2
30+
- uses: julia-actions/julia-processcoverage@v1
31+
- uses: codecov/codecov-action@v1
32+
with:
33+
file: lcov.info

Diff for: .github/workflows/ci.yml

+5-7
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,12 @@ jobs:
66
test:
77
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }}
88
runs-on: ${{ matrix.os }}
9-
continue-on-error: ${{ matrix.version == 'nightly' }}
109
strategy:
1110
fail-fast: false
1211
matrix:
1312
version:
14-
# - '1.0'
1513
- '1.4'
16-
- '1.5'
17-
- 'nightly'
14+
- '1' # automatically expands to the latest stable 1.x release of Julia
1815
os:
1916
- ubuntu-latest
2017
- macOS-latest
@@ -31,6 +28,7 @@ jobs:
3128
- uses: julia-actions/julia-runtest@latest
3229
env:
3330
JULIA_NUM_THREADS: 2
34-
- uses: julia-actions/julia-uploadcodecov@latest
35-
env:
36-
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
31+
- uses: julia-actions/julia-processcoverage@v1
32+
- uses: codecov/codecov-action@v1
33+
with:
34+
file: lcov.info

Diff for: test/Project.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Combinatorics = "861a8166-3701-5b0c-9a16-15d98fcdc6aa"
33
HalfIntegers = "f0d1745a-41c9-11e9-1dd9-e5d34d218721"
44
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
55
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
6-
# SUNRepresentations = "1a50b95c-7aac-476d-a9ce-2bfc675fc617"
6+
SUNRepresentations = "1a50b95c-7aac-476d-a9ce-2bfc675fc617"
77
TensorKit = "07d1fe3e-3e46-537d-9eac-e9e13d0d4cec"
88
TensorOperations = "6aa20fa7-93e2-5fca-9bc0-fbd0db3c71a2"
99
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

Diff for: test/runtests.jl

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ using TensorKit: ProductSector, fusiontensor
77
using TensorOperations
88
TensorOperations.disable_cache() # avoids memory overflow during CI?
99
using Base.Iterators: take, product
10-
# using SUNRepresentations: SUNIrrep
11-
# const SU3Irrep = SUNIrrep{3}
10+
using SUNRepresentations: SUNIrrep
11+
const SU3Irrep = SUNIrrep{3}
1212
import LinearAlgebra
1313

1414
include("newsectors.jl")
@@ -50,7 +50,7 @@ function hasfusiontensor(I::Type{<:Sector})
5050
end
5151
end
5252

53-
sectorlist = (Z2Irrep, Z3Irrep, Z4Irrep, U1Irrep, CU1Irrep, SU2Irrep, NewSU2Irrep,# SU3Irrep,
53+
sectorlist = (Z2Irrep, Z3Irrep, Z4Irrep, U1Irrep, CU1Irrep, SU2Irrep, NewSU2Irrep, SU3Irrep,
5454
FibonacciAnyon, IsingAnyon, Z3Irrep Z4Irrep, U1Irrep SU2Irrep, SU2Irrep
5555
SU2Irrep, NewSU2Irrep NewSU2Irrep, NewSU2Irrep SU2Irrep, SU2Irrep
5656
NewSU2Irrep, Z2Irrep FibonacciAnyon FibonacciAnyon)

Diff for: test/tensors.jl

+6-6
Original file line numberDiff line numberDiff line change
@@ -28,19 +28,19 @@ VSU₂ = (ℂ[SU2Irrep](0=>3, 1//2=>1),
2828
ℂ[SU2Irrep](1//2=>1, 1=>1)',
2929
ℂ[SU2Irrep](0=>2, 1//2=>2),
3030
ℂ[SU2Irrep](0=>1, 1//2=>1, 3//2=>1)')
31-
# VSU₃ = (ℂ[SU3Irrep]((0,0,0)=>3, (1,0,0)=>1),
32-
# ℂ[SU3Irrep]((0,0,0)=>3, (2,0,0)=>1)',
33-
# ℂ[SU3Irrep]((1,1,0)=>1, (2,1,0)=>1),
34-
# ℂ[SU3Irrep]((1,0,0)=>1, (2,0,0)=>1),
35-
# ℂ[SU3Irrep]((0,0,0)=>1, (1,0,0)=>1, (1,1,0)=>1)')
31+
VSU₃ = (ℂ[SU3Irrep]((0,0,0)=>3, (1,0,0)=>1),
32+
ℂ[SU3Irrep]((0,0,0)=>3, (2,0,0)=>1)',
33+
ℂ[SU3Irrep]((1,1,0)=>1, (2,1,0)=>1),
34+
ℂ[SU3Irrep]((1,0,0)=>1, (2,0,0)=>1),
35+
ℂ[SU3Irrep]((0,0,0)=>1, (1,0,0)=>1, (1,1,0)=>1)')
3636

3737
for V in (Vtr, Vℤ₂, Vℤ₃, VU₁, VCU₁, VSU₂)#, VSU₃)
3838
V1, V2, V3, V4, V5 = V
3939
@assert V3 * V4 * V2 V1' * V5' # necessary for leftorth tests
4040
@assert V3 * V4 V1' * V2' * V5' # necessary for rightorth tests
4141
end
4242

43-
for V in (Vtr, Vℤ₂, Vℤ₃, VU₁, VCU₁, VSU₂)#, VSU₃)
43+
for V in (Vtr, Vℤ₂, Vℤ₃, VU₁, VCU₁, VSU₂, VSU₃)
4444
I = sectortype(first(V))
4545
Istr = TensorKit.type_repr(I)
4646
println("---------------------------------------")

0 commit comments

Comments
 (0)