Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/" # Location of package manifests
directory: "/"
schedule:
interval: "weekly"
10 changes: 4 additions & 6 deletions .github/workflows/CompatHelper.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
name: "CompatHelper"

on:
schedule:
- cron: 0 0 * * *
workflow_dispatch:
- cron: "0 0 * * *"
workflow_dispatch: ~
permissions:
contents: write
pull-requests: write

contents: "write"
pull-requests: "write"
jobs:
compat-helper:
name: "CompatHelper"
Expand Down
24 changes: 13 additions & 11 deletions .github/workflows/Deploy.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,25 @@
name: Aggregate
name: "Aggregate"
on:
push:
branches:
- main
- "main"
schedule:
- cron: '0 0 * * *'
workflow_dispatch:
- cron: "0 0 * * *"
workflow_dispatch: ~
jobs:
aggregate:
runs-on: ubuntu-latest
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v6
- uses: julia-actions/setup-julia@v2
- uses: "actions/checkout@v6"
- uses: "julia-actions/setup-julia@v2"
with:
version: '1'
- name: Install dependencies
run: julia --project=docs/ -e 'using Pkg; Pkg.develop(path="."); Pkg.instantiate()'
- name: Aggregate and deploy
version: "1"
- name: "Install dependencies"
run: |-
julia --project=docs/ -e 'using Pkg; Pkg.develop(path="."); Pkg.instantiate()'
- name: "Aggregate and deploy"
run: |
git config user.name github-actions
git config user.email github-actions@github.com
julia --project=docs/ docs/make.jl deploy

8 changes: 3 additions & 5 deletions .github/workflows/FormatCheck.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
name: "Format Check"

on:
push:
branches:
- 'main'
tags: '*'
pull_request:

- "main"
tags: "*"
pull_request: ~
jobs:
format-check:
name: "Format Check"
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/IntegrationTestRequest.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
name: "Integration Test Request"

on:
issue_comment:
types: [created]

types:
- "created"
jobs:
integrationrequest:
if: |
github.event.issue.pull_request &&
contains(fromJSON('["OWNER", "COLLABORATOR", "MEMBER"]'), github.event.comment.author_association)
uses: ITensor/ITensorActions/.github/workflows/IntegrationTestRequest.yml@main
uses: "ITensor/ITensorActions/.github/workflows/IntegrationTestRequest.yml@main"
with:
localregistry: https://github.com/ITensor/ITensorRegistry.git
localregistry: "https://github.com/ITensor/ITensorRegistry.git"
10 changes: 4 additions & 6 deletions .github/workflows/LiterateCheck.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
name: "Literate Check"

on:
push:
branches:
- 'main'
tags: '*'
pull_request:

- "main"
tags: "*"
pull_request: ~
jobs:
literate:
name: "Literate Check"
uses: "ITensor/ITensorActions/.github/workflows/LiterateCheck.yml@main"
with:
localregistry: https://github.com/ITensor/ITensorRegistry.git
localregistry: "https://github.com/ITensor/ITensorRegistry.git"
24 changes: 11 additions & 13 deletions .github/workflows/Registrator.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,22 @@
name: Register Package
name: "Register Package"
on:
workflow_dispatch:
workflow_dispatch: ~
pull_request:
types:
- closed
- "closed"
paths:
- 'Project.toml'
- "Project.toml"
branches:
- 'master'
- 'main'

- "master"
- "main"
permissions:
contents: write
pull-requests: write

contents: "write"
pull-requests: "write"
jobs:
Register:
if: github.event_name == 'workflow_dispatch' || github.event.pull_request.merged == true
if: "github.event_name == 'workflow_dispatch' || github.event.pull_request.merged == true"
uses: "ITensor/ITensorActions/.github/workflows/Registrator.yml@main"
with:
localregistry: ITensor/ITensorRegistry
localregistry: "ITensor/ITensorRegistry"
secrets:
REGISTRATOR_KEY: ${{ secrets.REGISTRATOR_KEY }}
REGISTRATOR_KEY: "${{ secrets.REGISTRATOR_KEY }}"
38 changes: 19 additions & 19 deletions .github/workflows/TagBot.yml
Original file line number Diff line number Diff line change
@@ -1,31 +1,31 @@
name: TagBot
name: "TagBot"
on:
issue_comment:
types:
- created
- "created"
workflow_dispatch:
inputs:
lookback:
default: "3"
permissions:
actions: read
checks: read
contents: write
deployments: read
issues: read
discussions: read
packages: read
pages: read
pull-requests: read
repository-projects: read
security-events: read
statuses: read
actions: "read"
checks: "read"
contents: "write"
deployments: "read"
issues: "read"
discussions: "read"
packages: "read"
pages: "read"
pull-requests: "read"
repository-projects: "read"
security-events: "read"
statuses: "read"
jobs:
TagBot:
if: github.event_name == 'workflow_dispatch' || github.actor == 'JuliaTagBot'
runs-on: ubuntu-latest
if: "github.event_name == 'workflow_dispatch' || github.actor == 'JuliaTagBot'"
runs-on: "ubuntu-latest"
steps:
- uses: JuliaRegistries/TagBot@v1
- uses: "JuliaRegistries/TagBot@v1"
with:
token: ${{ secrets.GITHUB_TOKEN }}
ssh: ${{ secrets.DOCUMENTER_KEY }}
token: "${{ secrets.GITHUB_TOKEN }}"
ssh: "${{ secrets.DOCUMENTER_KEY }}"
40 changes: 17 additions & 23 deletions .github/workflows/Tests.yml
Original file line number Diff line number Diff line change
@@ -1,42 +1,36 @@
name: Tests
name: "Tests"
on:
push:
branches:
- 'master'
- 'main'
- 'release-'
tags: '*'
- "master"
- "main"
- "release-"
tags: "*"
paths-ignore:
- 'docs/**'
pull_request:
workflow_dispatch:

- "docs/**"
pull_request: ~
workflow_dispatch: ~
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
# Cancel intermediate builds: only if it is a pull request build.
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}

group: "${{ github.workflow }}-${{ github.ref }}"
cancel-in-progress: "${{ startsWith(github.ref, 'refs/pull/') }}"
jobs:
tests:
name: "Tests"
strategy:
fail-fast: false
matrix:
version:
- 'lts' # minimal supported version
- '1' # latest released Julia version
# group:
# - 'core'
# - 'optional'
- "lts"
- "1"
os:
- ubuntu-latest
- macOS-latest
- windows-latest
- "ubuntu-latest"
- "macOS-latest"
- "windows-latest"
uses: "ITensor/ITensorActions/.github/workflows/Tests.yml@main"
with:
group: "${{ matrix.group }}"
julia-version: "${{ matrix.version }}"
os: "${{ matrix.os }}"
localregistry: https://github.com/ITensor/ITensorRegistry.git
localregistry: "https://github.com/ITensor/ITensorRegistry.git"
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
CODECOV_TOKEN: "${{ secrets.CODECOV_TOKEN }}"
30 changes: 15 additions & 15 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
ci:
skip: [julia-formatter]

skip:
- "julia-formatter"
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-merge-conflict
- id: check-toml
- id: check-yaml
- id: end-of-file-fixer
exclude_types: [markdown] # incompatible with Literate.jl

- repo: "https://github.com/domluna/JuliaFormatter.jl"
rev: v2.3.0
hooks:
- id: "julia-formatter"
- repo: "https://github.com/pre-commit/pre-commit-hooks"
rev: "v6.0.0"
hooks:
- id: "check-merge-conflict"
- id: "check-toml"
- id: "check-yaml"
- id: "end-of-file-fixer"
exclude_types:
- "markdown"
- repo: "https://github.com/domluna/JuliaFormatter.jl"
rev: "v2.3.0"
hooks:
- id: "julia-formatter"
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "ITensorDocs"
uuid = "421c5ee2-4dae-4799-bb38-a6a9d9332403"
version = "0.1.1"
authors = ["ITensor developers <support@itensor.org> and contributors"]
version = "0.1.0"

[compat]
julia = "1.10"
2 changes: 1 addition & 1 deletion benchmark/benchmarks.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using ITensorDocs
using BenchmarkTools
using ITensorDocs

SUITE = BenchmarkGroup()
SUITE["rand"] = @benchmarkable rand(10)
Expand Down
5 changes: 3 additions & 2 deletions docs/Project.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@

[deps]
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
ITensorDocs = "421c5ee2-4dae-4799-bb38-a6a9d9332403"
Literate = "98b081ad-f1c9-55d3-8b20-4c87d4299306"
MultiDocumenter = "87ed4bf0-c935-4a67-83c3-2a03bee4197c"

[compat]
Documenter = "1.9.0"
ITensorDocs = "0.1.0"
Documenter = "1.9"
ITensorDocs = "0.1"
Literate = "2.20.1"
MultiDocumenter = "0.8"
Loading
Loading