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
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 }}"
16 changes: 8 additions & 8 deletions .github/workflows/FormatCheck.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
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"
Expand Down
14 changes: 8 additions & 6 deletions .github/workflows/FormatPullRequest.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
name: "Format Pull Request"

on:
schedule:
- cron: '0 0 * * *'
workflow_dispatch:
- cron: "0 0 * * *"
workflow_dispatch: ~
issue_comment:
types:
- "created"
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"
secrets: "inherit"
36 changes: 24 additions & 12 deletions .github/workflows/IntegrationTest.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,36 @@
name: "IntegrationTest"

on:
push:
branches:
- 'main'
tags: '*'
paths:
- 'Project.toml'
pull_request:
paths:
- 'Project.toml'

- "main"
tags: "*"
pull_request_target:
types:
- "opened"
- "synchronize"
- "reopened"
- "ready_for_review"
- "converted_to_draft"
jobs:
integration-test:
name: "IntegrationTest"
strategy:
matrix:
pkg:
- 'ITensorBase'
fail-fast: false
matrix:
pkg:
- "ITensorBase"
uses: "ITensor/ITensorActions/.github/workflows/IntegrationTest.yml@main"
secrets: "inherit"
with:
localregistry: "https://github.com/ITensor/ITensorRegistry.git"
pkg: "${{ matrix.pkg }}"
integration-gate:
name: "IntegrationTest"
needs: "integration-test"
if: "${{ always() && needs.integration-test.result != 'skipped' }}"
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"
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"
15 changes: 0 additions & 15 deletions .github/workflows/LiterateCheck.yml

This file was deleted.

25 changes: 13 additions & 12 deletions .github/workflows/Registrator.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,22 @@
name: Register Package
name: "Register Package"
on:
workflow_dispatch:
workflow_dispatch: ~
push:
branches:
- 'master'
- 'main'
- "master"
- "main"
paths:
- 'Project.toml'

- "Project.toml"
issue_comment:
types:
- "created"
permissions:
contents: write
pull-requests: write

contents: "write"
pull-requests: "write"
issues: "write"
jobs:
Register:
uses: "ITensor/ITensorActions/.github/workflows/Registrator.yml@main"
with:
localregistry: ITensor/ITensorRegistry
secrets:
REGISTRATOR_KEY: ${{ secrets.REGISTRATOR_KEY }}
localregistry: "ITensor/ITensorRegistry"
secrets: "inherit"
55 changes: 33 additions & 22 deletions .github/workflows/Tests.yml
Original file line number Diff line number Diff line change
@@ -1,42 +1,53 @@
name: Tests
name: "Tests"
on:
push:
branches:
- 'master'
- 'main'
- 'release-'
tags: '*'
- "master"
- "main"
- "release-"
tags: "*"
paths-ignore:
- 'docs/**'
- "docs/**"
pull_request:
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() && needs.tests.result != 'skipped' }}"
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"
13 changes: 5 additions & 8 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,18 +1,15 @@
*.jl.*.cov
*.jl.cov
*.jl.mem
*.cov
*.mem
*.o
*.swp
.DS_Store
.benchmarkci
.tmp
.vscode/
Manifest.toml
.worktrees/
LocalPreferences.toml
Manifest*.toml
benchmark/*.json
dev/
docs/LocalPreferences.toml
docs/Manifest.toml
docs/build/
docs/src/index.md
examples/LocalPreferences.toml
test/LocalPreferences.toml
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: [runic]

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
- id: check-yaml
- id: end-of-file-fixer
exclude_types: [markdown] # incompatible with Literate.jl

- repo: https://github.com/fredrikekre/runic-pre-commit
rev: v2.1.0
hooks:
- id: runic
- 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-pre-commit"
rev: "v1.0.0"
hooks:
- id: "itensor-formatter"
5 changes: 4 additions & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
name = "UnallocatedArrays"
uuid = "43c9e47c-e622-40fb-bf18-a09fc8c466b6"
version = "0.1.11"
version = "0.1.12"
authors = ["ITensor developers <support@itensor.org> and contributors"]

[workspace]
projects = ["benchmark", "dev", "docs", "examples", "test"]

[deps]
Adapt = "79e6a3ab-5dfb-504d-930d-738a2a938a0e"
FillArrays = "1a297f60-69ca-5386-bcde-b61e274b549b"
Expand Down
5 changes: 5 additions & 0 deletions docs/Project.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
[deps]
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
ITensorFormatter = "b6bf39f1-c9d3-4bad-aad8-593d802f65fd"
Literate = "98b081ad-f1c9-55d3-8b20-4c87d4299306"
TypeParameterAccessors = "7e5a90cf-f82e-492e-a09b-e3e26432c138"
UnallocatedArrays = "43c9e47c-e622-40fb-bf18-a09fc8c466b6"
UnspecifiedTypes = "42b3faec-625b-4613-8ddc-352bf9672b8d"

[sources.UnallocatedArrays]
path = ".."

[compat]
Documenter = "1.8.1"
ITensorFormatter = "0.2.27"
Literate = "2.20.1"
TypeParameterAccessors = "0.2, 0.3, 0.4"
UnallocatedArrays = "0.1.3"
Expand Down
Loading
Loading