Skip to content

Commit 5c4b625

Browse files
authored
Apply template patch (#214)
1 parent 96839e8 commit 5c4b625

55 files changed

Lines changed: 525 additions & 554 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/CompatHelper.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
name: "CompatHelper"
2-
32
on:
43
schedule:
5-
- cron: '0 0 * * *'
6-
workflow_dispatch:
4+
- cron: "0 0 * * *"
5+
workflow_dispatch: ~
76
permissions:
8-
contents: write
9-
pull-requests: write
10-
7+
contents: "write"
8+
pull-requests: "write"
119
jobs:
1210
compat-helper:
1311
name: "CompatHelper"
Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,20 @@
11
name: "Documentation"
2-
32
on:
43
push:
54
branches:
6-
- main
7-
tags: '*'
8-
pull_request:
5+
- "main"
6+
tags: "*"
7+
pull_request: ~
98
schedule:
10-
- cron: '1 4 * * 4'
11-
9+
- cron: "1 4 * * 4"
1210
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-
11+
group: "${{ github.workflow }}-${{ github.ref }}"
12+
cancel-in-progress: "${{ github.ref_name != github.event.repository.default_branch || github.ref != 'refs/tags/v*' }}"
1613
jobs:
1714
build-and-deploy-docs:
1815
name: "Documentation"
1916
uses: "ITensor/ITensorActions/.github/workflows/Documentation.yml@main"
2017
with:
21-
localregistry: https://github.com/ITensor/ITensorRegistry.git
18+
localregistry: "https://github.com/ITensor/ITensorRegistry.git"
2219
secrets:
23-
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
20+
CODECOV_TOKEN: "${{ secrets.CODECOV_TOKEN }}"

.github/workflows/FormatCheck.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
11
name: "Format Check"
2-
32
on:
43
pull_request_target:
5-
paths: ['**/*.jl']
6-
types: [opened, synchronize, reopened, ready_for_review]
7-
4+
paths:
5+
- "**/*.jl"
6+
types:
7+
- "opened"
8+
- "synchronize"
9+
- "reopened"
10+
- "ready_for_review"
811
permissions:
9-
contents: read
10-
actions: write
11-
pull-requests: write
12-
12+
contents: "read"
13+
actions: "write"
14+
pull-requests: "write"
1315
jobs:
1416
format-check:
1517
name: "Format Check"

.github/workflows/FormatPullRequest.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
name: "Format Pull Request"
2-
32
on:
43
schedule:
5-
- cron: '0 0 * * *'
6-
workflow_dispatch:
4+
- cron: "0 0 * * *"
5+
workflow_dispatch: ~
76
permissions:
8-
contents: write
9-
pull-requests: write
10-
7+
contents: "write"
8+
pull-requests: "write"
119
jobs:
1210
format-pull-request:
1311
name: "Format Pull Request"

.github/workflows/IntegrationTest.yml

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,27 @@
11
name: "IntegrationTest"
2-
32
on:
43
push:
54
branches:
6-
- 'main'
7-
tags: '*'
5+
- "main"
6+
tags: "*"
87
paths:
9-
- 'Project.toml'
8+
- "Project.toml"
109
pull_request:
11-
paths:
12-
- 'Project.toml'
13-
10+
types:
11+
- "opened"
12+
- "synchronize"
13+
- "reopened"
14+
- "ready_for_review"
15+
- "converted_to_draft"
1416
jobs:
1517
integration-test:
1618
name: "IntegrationTest"
1719
strategy:
18-
matrix:
19-
pkg:
20-
- 'FusionTensors'
21-
- 'GradedArrays'
22-
- 'KroneckerArrays'
20+
matrix:
21+
pkg:
22+
- "FusionTensors"
23+
- "GradedArrays"
24+
- "KroneckerArrays"
2325
uses: "ITensor/ITensorActions/.github/workflows/IntegrationTest.yml@main"
2426
with:
2527
localregistry: "https://github.com/ITensor/ITensorRegistry.git"
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
name: "Integration Test Request"
2-
32
on:
43
issue_comment:
5-
types: [created]
6-
4+
types:
5+
- "created"
76
jobs:
87
integrationrequest:
98
if: |
109
github.event.issue.pull_request &&
1110
contains(fromJSON('["OWNER", "COLLABORATOR", "MEMBER"]'), github.event.comment.author_association)
12-
uses: ITensor/ITensorActions/.github/workflows/IntegrationTestRequest.yml@main
11+
12+
uses: "ITensor/ITensorActions/.github/workflows/IntegrationTestRequest.yml@main"
1313
with:
14-
localregistry: https://github.com/ITensor/ITensorRegistry.git
14+
localregistry: "https://github.com/ITensor/ITensorRegistry.git"
Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11
name: "Literate Check"
2-
32
on:
43
push:
54
branches:
6-
- 'main'
7-
tags: '*'
8-
pull_request:
9-
5+
- "main"
6+
tags: "*"
7+
pull_request: ~
108
jobs:
119
literate:
1210
name: "Literate Check"
1311
uses: "ITensor/ITensorActions/.github/workflows/LiterateCheck.yml@main"
1412
with:
15-
localregistry: https://github.com/ITensor/ITensorRegistry.git
13+
localregistry: "https://github.com/ITensor/ITensorRegistry.git"

.github/workflows/Registrator.yml

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,19 @@
1-
name: Register Package
1+
name: "Register Package"
22
on:
3-
workflow_dispatch:
3+
workflow_dispatch: ~
44
push:
55
branches:
6-
- 'master'
7-
- 'main'
6+
- "master"
7+
- "main"
88
paths:
9-
- 'Project.toml'
10-
9+
- "Project.toml"
1110
permissions:
12-
contents: write
13-
pull-requests: write
14-
11+
contents: "write"
12+
pull-requests: "write"
1513
jobs:
1614
Register:
1715
uses: "ITensor/ITensorActions/.github/workflows/Registrator.yml@main"
1816
with:
19-
localregistry: ITensor/ITensorRegistry
17+
localregistry: "ITensor/ITensorRegistry"
2018
secrets:
21-
REGISTRATOR_KEY: ${{ secrets.REGISTRATOR_KEY }}
19+
REGISTRATOR_KEY: "${{ secrets.REGISTRATOR_KEY }}"

.github/workflows/TagBot.yml

Lines changed: 9 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,16 @@
1-
name: TagBot
1+
name: "TagBot"
22
on:
33
issue_comment:
44
types:
5-
- created
6-
workflow_dispatch:
7-
inputs:
8-
lookback:
9-
default: "3"
10-
permissions:
11-
actions: read
12-
checks: read
13-
contents: write
14-
deployments: read
15-
issues: read
16-
discussions: read
17-
packages: read
18-
pages: read
19-
pull-requests: read
20-
repository-projects: read
21-
security-events: read
22-
statuses: read
5+
- "created"
6+
workflow_dispatch: ~
237
jobs:
248
TagBot:
25-
if: github.event_name == 'workflow_dispatch' || github.actor == 'JuliaTagBot'
26-
runs-on: ubuntu-latest
9+
if: "github.event_name == 'workflow_dispatch' || github.actor == 'JuliaTagBot'"
10+
runs-on: "ubuntu-latest"
2711
steps:
28-
- uses: JuliaRegistries/TagBot@v1
12+
- uses: "JuliaRegistries/TagBot@v1"
2913
with:
30-
token: ${{ secrets.GITHUB_TOKEN }}
31-
ssh: ${{ secrets.DOCUMENTER_KEY }}
14+
token: "${{ secrets.GITHUB_TOKEN }}"
15+
registry: "ITensor/ITensorRegistry"
16+
ssh: "${{ secrets.DOCUMENTER_KEY }}"

.github/workflows/Tests.yml

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,42 @@
1-
name: Tests
1+
name: "Tests"
22
on:
33
push:
44
branches:
5-
- 'master'
6-
- 'main'
7-
- 'release-'
8-
tags: '*'
5+
- "master"
6+
- "main"
7+
- "release-"
8+
tags: "*"
99
paths-ignore:
10-
- 'docs/**'
10+
- "docs/**"
1111
pull_request:
12-
workflow_dispatch:
13-
12+
types:
13+
- "opened"
14+
- "synchronize"
15+
- "reopened"
16+
- "ready_for_review"
17+
- "converted_to_draft"
18+
workflow_dispatch: ~
1419
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-
20+
group: "${{ github.workflow }}-${{ github.ref }}"
21+
cancel-in-progress: "${{ startsWith(github.ref, 'refs/pull/') }}"
1922
jobs:
2023
tests:
2124
name: "Tests"
2225
strategy:
2326
fail-fast: false
2427
matrix:
2528
version:
26-
- 'lts' # minimal supported version
27-
- '1' # latest released Julia version
28-
# group:
29-
# - 'core'
30-
# - 'optional'
29+
- "lts"
30+
- "1"
3131
os:
32-
- ubuntu-latest
33-
- macOS-latest
34-
- windows-latest
32+
- "ubuntu-latest"
33+
- "macOS-latest"
34+
- "windows-latest"
3535
uses: "ITensor/ITensorActions/.github/workflows/Tests.yml@main"
3636
with:
3737
group: "${{ matrix.group }}"
3838
julia-version: "${{ matrix.version }}"
3939
os: "${{ matrix.os }}"
40-
localregistry: https://github.com/ITensor/ITensorRegistry.git
40+
localregistry: "https://github.com/ITensor/ITensorRegistry.git"
4141
secrets:
42-
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
42+
CODECOV_TOKEN: "${{ secrets.CODECOV_TOKEN }}"

0 commit comments

Comments
 (0)