File tree Expand file tree Collapse file tree 10 files changed +159
-202
lines changed
templates/github/.github/workflows Expand file tree Collapse file tree 10 files changed +159
-202
lines changed Original file line number Diff line number Diff line change 1+ name : " Documentation"
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+ tags : ' *'
8+ pull_request :
9+ schedule :
10+ - cron : ' 1 4 * * 4'
11+
12+ concurrency :
13+ group : ${{ github.workflow }}-${{ github.ref }}
14+ cancel-in-progress : ${{ github.ref_name != github.event.repository.default_branch || github.ref != 'refs/tags/v*' }}
15+
16+ jobs :
17+ build-and-deploy-docs :
18+ name : " Documentation"
19+ uses : " ITensor/ITensorActions/.github/workflows/Documentation.yml@main"
20+ with :
21+ localregistry : https://github.com/ITensor/ITensorRegistry.git
22+ secrets : " inherit"
Original file line number Diff line number Diff line change 1- name : Format check
1+ name : " Format Check"
2+
23on :
34 push :
4- branches : [main]
5- tags : [v*]
5+ branches :
6+ - ' main'
7+ tags : ' *'
68 pull_request :
79
810jobs :
9- format :
11+ format-check :
1012 name : " Format Check"
11- runs-on : ubuntu-latest
12- steps :
13- - uses : actions/checkout@v4
14- - uses : julia-actions/setup-julia@v2
15- with :
16- version : 1
17- - name : Install JuliaFormatter and format
18- run : |
19- julia -e 'using Pkg; Pkg.add(PackageSpec(name="JuliaFormatter"))'
20- julia -e 'using JuliaFormatter; format(".", verbose=true)'
21- - name : Check format
22- run : |
23- julia -e '
24- out = Cmd(`git diff --name-only`) |> read |> String
25- if out == ""
26- exit(0)
27- else
28- @error "The following files have not been formatted:"
29- write(stdout, out)
30- out_diff = Cmd(`git diff`) |> read |> String
31- @error "Diff:"
32- write(stdout, out_diff)
33- exit(1)
34- @error ""
35- end'
13+ uses : " ITensor/ITensorActions/.github/workflows/FormatCheck.yml@main"
Original file line number Diff line number Diff line change 1- name : Literate check
1+ name : " Literate Check"
2+
23on :
34 push :
4- branches : [main]
5- tags : [v*]
5+ branches :
6+ - ' main'
7+ tags : ' *'
68 pull_request :
79
810jobs :
911 literate :
1012 name : " Literate Check"
11- runs-on : ubuntu-latest
12- steps :
13- - uses : actions/checkout@v4
14- - uses : julia-actions/setup-julia@v2
15- with :
16- version : 1
17- - name : Install Literate and generate docs
18- run : |
19- julia -e '
20- using Pkg
21- Pkg.develop(PackageSpec(path=pwd()))
22- Pkg.instantiate()
23- Pkg.add(PackageSpec(name="Literate"))'
24- julia -e 'include("docs/make_readme.jl")'
25- - name : Check if docs need to be updated
26- run : |
27- julia -e '
28- out = Cmd(`git diff --name-only`) |> read |> String
29- if out == ""
30- exit(0)
31- else
32- @error "The docs are outdated, rerun Literate to regenerate them."
33- write(stdout, out)
34- out_diff = Cmd(`git diff`) |> read |> String
35- @error "Diff:"
36- write(stdout, out_diff)
37- exit(1)
38- @error ""
39- end'
13+ uses : " ITensor/ITensorActions/.github/workflows/LiterateCheck.yml@main"
14+ with :
15+ localregistry : https://github.com/ITensor/ITensorRegistry.git
Original file line number Diff line number Diff line change 1+ name : Tests
2+ on :
3+ push :
4+ branches :
5+ - ' master'
6+ - ' main'
7+ - ' release-'
8+ tags : ' *'
9+ paths-ignore :
10+ - ' docs/**'
11+ pull_request :
12+ workflow_dispatch :
13+
14+ concurrency :
15+ group : ${{ github.workflow }}-${{ github.ref }}
16+ # Cancel intermediate builds: only if it is a pull request build.
17+ cancel-in-progress : ${{ startsWith(github.ref, 'refs/pull/') }}
18+
19+ jobs :
20+ tests :
21+ name : " Tests"
22+ strategy :
23+ fail-fast : false
24+ matrix :
25+ version :
26+ - ' lts' # minimal supported version
27+ - ' 1' # latest released Julia version
28+ # group:
29+ # - 'core'
30+ # - 'optional'
31+ os :
32+ - ubuntu-latest
33+ - macOS-latest
34+ - windows-latest
35+ uses : " ITensor/ITensorActions/.github/workflows/Tests.yml@main"
36+ with :
37+ group : " ${{ matrix.group }}"
38+ julia-version : " ${{ matrix.version }}"
39+ os : " ${{ matrix.os }}"
40+ localregistry : https://github.com/ITensor/ITensorRegistry.git
41+ secrets :
42+ CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ name : " Documentation"
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+ tags : ' *'
8+ pull_request :
9+ schedule :
10+ - cron : ' 1 4 * * 4'
11+
12+ concurrency :
13+ group : ${{ github.workflow }}-${{ github.ref }}
14+ cancel-in-progress : ${{ github.ref_name != github.event.repository.default_branch || github.ref != 'refs/tags/v*' }}
15+
16+ jobs :
17+ build-and-deploy-docs :
18+ name : " Documentation"
19+ uses : " ITensor/ITensorActions/.github/workflows/Documentation.yml@main"
20+ with :
21+ localregistry : https://github.com/ITensor/ITensorRegistry.git
22+ secrets : " inherit"
Original file line number Diff line number Diff line change 1- name : Format check
1+ name : " Format Check"
2+
23on :
34 push :
4- branches : [main]
5- tags : [v*]
5+ branches :
6+ - ' main'
7+ tags : ' *'
68 pull_request :
79
810jobs :
9- format :
11+ format-check :
1012 name : " Format Check"
11- runs-on : ubuntu-latest
12- steps :
13- - uses : actions/checkout@v4
14- - uses : julia-actions/setup-julia@v2
15- with :
16- version : 1
17- - name : Install JuliaFormatter and format
18- run : |
19- julia -e 'using Pkg; Pkg.add(PackageSpec(name="JuliaFormatter"))'
20- julia -e 'using JuliaFormatter; format(".", verbose=true)'
21- - name : Check format
22- run : |
23- julia -e '
24- out = Cmd(`git diff --name-only`) |> read |> String
25- if out == ""
26- exit(0)
27- else
28- @error "The following files have not been formatted:"
29- write(stdout, out)
30- out_diff = Cmd(`git diff`) |> read |> String
31- @error "Diff:"
32- write(stdout, out_diff)
33- exit(1)
34- @error ""
35- end'
13+ uses : " ITensor/ITensorActions/.github/workflows/FormatCheck.yml@main"
Original file line number Diff line number Diff line change 1- name : Literate check
1+ name : " Literate Check"
2+
23on :
34 push :
4- branches : [main]
5- tags : [v*]
5+ branches :
6+ - ' main'
7+ tags : ' *'
68 pull_request :
79
810jobs :
911 literate :
1012 name : " Literate Check"
11- runs-on : ubuntu-latest
12- steps :
13- - uses : actions/checkout@v4
14- - uses : julia-actions/setup-julia@v2
15- with :
16- version : 1
17- - name : Install Literate and generate docs
18- run : |
19- julia -e '
20- using Pkg
21- Pkg.develop(PackageSpec(path=pwd()))
22- Pkg.instantiate()
23- Pkg.add(PackageSpec(name="Literate"))'
24- julia -e 'include("docs/make_readme.jl")'
25- - name : Check if docs need to be updated
26- run : |
27- julia -e '
28- out = Cmd(`git diff --name-only`) |> read |> String
29- if out == ""
30- exit(0)
31- else
32- @error "The docs are outdated, rerun Literate to regenerate them."
33- write(stdout, out)
34- out_diff = Cmd(`git diff`) |> read |> String
35- @error "Diff:"
36- write(stdout, out_diff)
37- exit(1)
38- @error ""
39- end'
13+ uses : " ITensor/ITensorActions/.github/workflows/LiterateCheck.yml@main"
14+ with :
15+ localregistry : https://github.com/ITensor/ITensorRegistry.git
Original file line number Diff line number Diff line change 1+ name : Tests
2+ on :
3+ push :
4+ branches :
5+ - ' master'
6+ - ' main'
7+ - ' release-'
8+ tags : ' *'
9+ paths-ignore :
10+ - ' docs/**'
11+ pull_request :
12+ workflow_dispatch :
13+
14+ concurrency :
15+ group : ${{ github.workflow }}-${{ github.ref }}
16+ # Cancel intermediate builds: only if it is a pull request build.
17+ cancel-in-progress : ${{ startsWith(github.ref, 'refs/pull/') }}
18+
19+ jobs :
20+ tests :
21+ name : " Tests"
22+ strategy :
23+ fail-fast : false
24+ matrix :
25+ version :
26+ - ' lts' # minimal supported version
27+ - ' 1' # latest released Julia version
28+ # group:
29+ # - 'core'
30+ # - 'optional'
31+ os :
32+ - ubuntu-latest
33+ - macOS-latest
34+ - windows-latest
35+ uses : " ITensor/ITensorActions/.github/workflows/Tests.yml@main"
36+ with :
37+ group : " ${{ matrix.group }}"
38+ julia-version : " ${{ matrix.version }}"
39+ os : " ${{ matrix.os }}"
40+ localregistry : https://github.com/ITensor/ITensorRegistry.git
41+ secrets :
42+ CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
You can’t perform that action at this time.
0 commit comments