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
19 changes: 8 additions & 11 deletions .github/workflows/Documentation.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,20 @@
name: "Documentation"

on:
push:
branches:
- main
tags: '*'
pull_request:
- "main"
tags: "*"
pull_request: ~
schedule:
- cron: '1 4 * * 4'

- cron: "1 4 * * 4"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref_name != github.event.repository.default_branch || github.ref != 'refs/tags/v*' }}

group: "${{ github.workflow }}-${{ github.ref }}"
cancel-in-progress: "${{ github.ref_name != github.event.repository.default_branch || github.ref != 'refs/tags/v*' }}"
jobs:
build-and-deploy-docs:
name: "Documentation"
uses: "ITensor/ITensorActions/.github/workflows/Documentation.yml@main"
with:
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 }}"
18 changes: 8 additions & 10 deletions .github/workflows/FormatCheck.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@
name: "Format Check"

on:
pull_request_target:
paths: ['**/*.jl']
types: [opened, synchronize, reopened, ready_for_review]

types:
- "opened"
- "synchronize"
- "reopened"
- "ready_for_review"
permissions:
contents: read
actions: write
pull-requests: write

contents: "read"
actions: "write"
pull-requests: "write"
jobs:
format-check:
name: "Format Check"
uses: "ITensor/ITensorActions/.github/workflows/FormatCheck.yml@main"
with:
directory: benchmark docs examples src test
12 changes: 4 additions & 8 deletions .github/workflows/FormatPullRequest.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@
name: "Format Pull Request"

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

contents: "write"
pull-requests: "write"
jobs:
format-pull-request:
name: "Format Pull Request"
uses: "ITensor/ITensorActions/.github/workflows/FormatPullRequest.yml@main"
with:
directory: benchmark docs examples src test
39 changes: 39 additions & 0 deletions .github/workflows/IntegrationTest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: "IntegrationTest"
on:
push:
branches:
- "main"
tags: "*"
paths:
- "Project.toml"
pull_request:
types:
- "opened"
- "synchronize"
- "reopened"
- "ready_for_review"
- "converted_to_draft"
paths:
- "Project.toml"
jobs:
integration-test:
name: "IntegrationTest"
strategy:
matrix:
pkg:
- "__none__"
uses: "ITensor/ITensorActions/.github/workflows/IntegrationTest.yml@main"
with:
localregistry: "https://github.com/ITensor/ITensorRegistry.git"
pkg: "${{ matrix.pkg }}"
integration-gate:
name: "IntegrationTest"
needs: "integration-test"
if: "${{ always() }}"
runs-on: "ubuntu-latest"
steps:
- name: "Fail if any downstream integration test failed"
run: |
echo "integration-test.result = ${{ needs.integration-test.result }}"
test "${{ needs.integration-test.result }}" = "success"

12 changes: 6 additions & 6 deletions .github/workflows/IntegrationTestRequest.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
name: "Integration Request"

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"
15 changes: 0 additions & 15 deletions .github/workflows/LiterateCheck.yml

This file was deleted.

21 changes: 9 additions & 12 deletions .github/workflows/Registrator.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,19 @@
name: Register Package

name: "Register Package"
on:
workflow_dispatch:
workflow_dispatch: ~
push:
branches:
- 'master'
- 'main'
- "master"
- "main"
paths:
- 'Project.toml'

- "Project.toml"
permissions:
contents: write
pull-requests: write

contents: "write"
pull-requests: "write"
jobs:
Register:
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 }}"
20 changes: 9 additions & 11 deletions .github/workflows/TagBot.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@
name: TagBot

name: "TagBot"
on:
issue_comment:
types:
- created
workflow_dispatch:

- "created"
workflow_dispatch: ~
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 }}
registry: ITensor/ITensorRegistry
ssh: ${{ secrets.DOCUMENTER_KEY }}
token: "${{ secrets.GITHUB_TOKEN }}"
registry: "ITensor/ITensorRegistry"
ssh: "${{ secrets.DOCUMENTER_KEY }}"
57 changes: 33 additions & 24 deletions .github/workflows/Tests.yml
Original file line number Diff line number Diff line change
@@ -1,44 +1,53 @@
name: Tests

name: "Tests"
on:
push:
branches:
- 'master'
- 'main'
- 'release-'
tags: '*'
- "master"
- "main"
- "release-"
tags: "*"
paths-ignore:
- 'docs/**'
- "docs/**"
pull_request:
types: [opened, synchronize, reopened, ready_for_review, converted_to_draft]
workflow_dispatch:

types:
- "opened"
- "synchronize"
- "reopened"
- "ready_for_review"
- "converted_to_draft"
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 }}"
tests-gate:
name: "Tests"
needs: "tests"
if: "${{ always() }}"
runs-on: "ubuntu-latest"
steps:
- name: "Fail if any matrix leg failed"
run: |
echo "tests.result = ${{ needs.tests.result }}"
test "${{ needs.tests.result }}" = "success"

6 changes: 2 additions & 4 deletions .github/workflows/VersionCheck.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
name: "Version Check"

on:
pull_request:

pull_request: ~
jobs:
version-check:
name: "Version Check"
uses: "ITensor/ITensorActions/.github/workflows/VersionCheck.yml@main"
with:
localregistry: https://github.com/ITensor/ITensorRegistry.git
localregistry: "https://github.com/ITensor/ITensorRegistry.git"
33 changes: 15 additions & 18 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,20 +1,17 @@
ci:
skip: [itensor-formatter]

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

- repo: https://github.com/ITensor/ITensorFormatter.jl
rev: v0.2.11
hooks:
- id: itensor-formatter
exclude: (/.*)?templates(/.*)?$
- 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/ITensor/ITensorFormatter.jl"
rev: "v0.2.19"
hooks:
- id: "itensor-formatter"
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name = "ITensorPkgSkeleton"
uuid = "3d388ab1-018a-49f4-ae50-18094d5f71ea"
version = "0.3.28"
version = "0.3.29"
authors = ["ITensor developers <support@itensor.org> and contributors"]

[workspace]
Expand Down
Loading
Loading