Skip to content

Commit 824b194

Browse files
committed
update ci and project.toml
1 parent 0623799 commit 824b194

File tree

4 files changed

+72
-21
lines changed

4 files changed

+72
-21
lines changed

.github/workflows/CompatHelper.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,18 @@
11
name: CompatHelper
2+
23
on:
34
schedule:
45
- cron: 0 0 * * *
6+
workflow_dispatch:
7+
58
jobs:
6-
build:
9+
CompatHelper:
710
runs-on: ubuntu-latest
811
steps:
912
- name: Pkg.add("CompatHelper")
1013
run: julia -e 'using Pkg; Pkg.add("CompatHelper")'
1114
- name: CompatHelper.main()
12-
run: julia -e 'using CompatHelper; CompatHelper.main()'
1315
env:
1416
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
17+
COMPATHELPER_PRIV: ${{ secrets.DOCUMENTER_KEY }}
18+
run: julia -e 'using CompatHelper; CompatHelper.main()'
Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1-
name: format-check
1+
name: FormatCheck
22

33
on:
44
push:
55
branches:
6+
- 'main'
67
- 'master'
8+
- 'release-'
79
tags: '*'
810
pull_request:
911

@@ -12,15 +14,19 @@ jobs:
1214
runs-on: ${{ matrix.os }}
1315
strategy:
1416
matrix:
15-
julia-version: [1]
16-
julia-arch: [x86]
17-
os: [ubuntu-latest]
17+
version:
18+
- '1' # automatically expands to the latest stable 1.x release of Julia
19+
os:
20+
- ubuntu-latest
21+
arch:
22+
- x64
1823
steps:
1924
- uses: julia-actions/setup-julia@latest
2025
with:
21-
version: ${{ matrix.julia-version }}
26+
version: ${{ matrix.version }}
27+
arch: ${{ matrix.arch }}
2228

23-
- uses: actions/checkout@v1
29+
- uses: actions/checkout@v4
2430
- name: Install JuliaFormatter and format
2531
# This will use the latest version by default but you can set the version like so:
2632
#
@@ -38,4 +44,4 @@ jobs:
3844
@error "Some files have not been formatted !!!"
3945
write(stdout, out)
4046
exit(1)
41-
end'
47+
end'

.github/workflows/ci.yml

Lines changed: 51 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,78 @@
11
name: CI
22
on:
3-
- push
4-
- pull_request
3+
push:
4+
branches:
5+
- 'master'
6+
- 'main'
7+
- 'release-'
8+
tags: '*'
9+
pull_request:
10+
workflow_dispatch:
11+
12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.ref }}
14+
cancel-in-progress: true
15+
516
jobs:
617
test:
718
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }}
819
runs-on: ${{ matrix.os }}
9-
continue-on-error: ${{ matrix.version == 'nightly' }}
1020
strategy:
1121
fail-fast: false
1222
matrix:
1323
version:
14-
- '1.6'
15-
- '1'
16-
- 'nightly'
24+
- '1.8' # LTS version
25+
- '1' # automatically expands to the latest stable 1.x release of Julia
1726
os:
1827
- ubuntu-latest
1928
- macOS-latest
2029
- windows-latest
2130
arch:
2231
- x64
32+
# - x86
33+
# exclude:
34+
# - os: macOS-latest
35+
# arch: x86
2336
steps:
24-
- uses: actions/checkout@v3
25-
- uses: julia-actions/setup-julia@v1
37+
- uses: actions/checkout@v4
38+
- uses: julia-actions/setup-julia@v2
2639
with:
2740
version: ${{ matrix.version }}
2841
arch: ${{ matrix.arch }}
29-
- uses: julia-actions/cache@v1
42+
- uses: julia-actions/cache@v2
3043
- uses: julia-actions/julia-buildpkg@latest
3144
- uses: julia-actions/julia-runtest@latest
3245
env:
3346
JULIA_NUM_THREADS: 4
3447
- uses: julia-actions/julia-processcoverage@v1
35-
- uses: codecov/codecov-action@v3
48+
- uses: codecov/codecov-action@v4
49+
env:
50+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
3651
with:
3752
file: lcov.info
53+
test-nightly:
54+
needs: test
55+
name: Julia nightly - ${{ matrix.os }} - ${{ matrix.arch }}
56+
runs-on: ${{ matrix.os }}
57+
strategy:
58+
fail-fast: false
59+
matrix:
60+
version:
61+
- 'nightly'
62+
os:
63+
- ubuntu-latest
64+
- macOS-latest
65+
- windows-latest
66+
arch:
67+
- x64
68+
steps:
69+
- uses: actions/checkout@v4
70+
- uses: julia-actions/setup-julia@v2
71+
with:
72+
version: ${{ matrix.version }}
73+
arch: ${{ matrix.arch }}
74+
- uses: julia-actions/cache@v2
75+
- uses: julia-actions/julia-buildpkg@latest
76+
- uses: julia-actions/julia-runtest@latest
77+
env:
78+
JULIA_NUM_THREADS: 4

Project.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
name = "TensorKitManifolds"
22
uuid = "11fa318c-39cb-4a83-b1ed-cdc7ba1e3684"
33
authors = ["Jutho Haegeman <[email protected]>", "Markus Hauru <[email protected]>"]
4-
version = "0.6.2"
4+
version = "0.7"
55

66
[deps]
77
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
88
TensorKit = "07d1fe3e-3e46-537d-9eac-e9e13d0d4cec"
99

1010
[compat]
11-
TensorKit = "0.12.6"
11+
TensorKit = "0.12.1"
1212
julia = "1.6"
1313

1414
[extras]

0 commit comments

Comments
 (0)