Skip to content

Commit f908c26

Browse files
authored
Apply format patch (#24)
1 parent 349a9ab commit f908c26

13 files changed

+94
-117
lines changed

.github/dependabot.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
21
version: 2
32
updates:
43
- package-ecosystem: "github-actions"
5-
directory: "/" # Location of package manifests
4+
directory: "/"
65
schedule:
76
interval: "weekly"

.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: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
11
name: "Format Check"
2-
32
on:
4-
pull_request:
5-
3+
pull_request: ~
64
permissions:
7-
contents: read
8-
checks: write
9-
issues: write
10-
pull-requests: write
11-
5+
contents: "read"
6+
checks: "write"
7+
issues: "write"
8+
pull-requests: "write"
129
jobs:
1310
format-check:
1411
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"
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: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,31 @@
1-
name: TagBot
1+
name: "TagBot"
22
on:
33
issue_comment:
44
types:
5-
- created
5+
- "created"
66
workflow_dispatch:
77
inputs:
88
lookback:
99
default: "3"
1010
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
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"
2323
jobs:
2424
TagBot:
25-
if: github.event_name == 'workflow_dispatch' || github.actor == 'JuliaTagBot'
26-
runs-on: ubuntu-latest
25+
if: "github.event_name == 'workflow_dispatch' || github.actor == 'JuliaTagBot'"
26+
runs-on: "ubuntu-latest"
2727
steps:
28-
- uses: JuliaRegistries/TagBot@v1
28+
- uses: "JuliaRegistries/TagBot@v1"
2929
with:
30-
token: ${{ secrets.GITHUB_TOKEN }}
31-
ssh: ${{ secrets.DOCUMENTER_KEY }}
30+
token: "${{ secrets.GITHUB_TOKEN }}"
31+
ssh: "${{ secrets.DOCUMENTER_KEY }}"

.github/workflows/Tests.yml

Lines changed: 17 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,36 @@
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/**'
11-
pull_request:
12-
workflow_dispatch:
13-
10+
- "docs/**"
11+
pull_request: ~
12+
workflow_dispatch: ~
1413
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-
14+
group: "${{ github.workflow }}-${{ github.ref }}"
15+
cancel-in-progress: "${{ startsWith(github.ref, 'refs/pull/') }}"
1916
jobs:
2017
tests:
2118
name: "Tests"
2219
strategy:
2320
fail-fast: false
2421
matrix:
2522
version:
26-
- 'lts' # minimal supported version
27-
- '1' # latest released Julia version
28-
# group:
29-
# - 'core'
30-
# - 'optional'
23+
- "lts"
24+
- "1"
3125
os:
32-
- ubuntu-latest
33-
- macOS-latest
34-
- windows-latest
26+
- "ubuntu-latest"
27+
- "macOS-latest"
28+
- "windows-latest"
3529
uses: "ITensor/ITensorActions/.github/workflows/Tests.yml@main"
3630
with:
3731
group: "${{ matrix.group }}"
3832
julia-version: "${{ matrix.version }}"
3933
os: "${{ matrix.os }}"
40-
localregistry: https://github.com/ITensor/ITensorRegistry.git
34+
localregistry: "https://github.com/ITensor/ITensorRegistry.git"
4135
secrets:
42-
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
36+
CODECOV_TOKEN: "${{ secrets.CODECOV_TOKEN }}"

0 commit comments

Comments
 (0)