From 1c0456e53110cb3a283714ad59ce6c817df2511f Mon Sep 17 00:00:00 2001 From: mtfishman Date: Fri, 7 Feb 2025 15:33:46 -0500 Subject: [PATCH 1/7] Add ITensorRegistry to workflows and enable in CompatHelper --- .github/workflows/AddITensorRegistry.yml | 14 ++++++++++++++ .github/workflows/CompatHelper.yml | 2 +- .../.github/workflows/AddITensorRegistry.yml | 14 ++++++++++++++ .../github/.github/workflows/CompatHelper.yml | 2 +- 4 files changed, 30 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/AddITensorRegistry.yml create mode 100644 templates/github/.github/workflows/AddITensorRegistry.yml diff --git a/.github/workflows/AddITensorRegistry.yml b/.github/workflows/AddITensorRegistry.yml new file mode 100644 index 0000000..08c59d2 --- /dev/null +++ b/.github/workflows/AddITensorRegistry.yml @@ -0,0 +1,14 @@ +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: julia-actions/setup-julia@v2 + with: + version: "1" + - uses: julia-actions/cache@v2 + - uses: julia-actions/add-julia-registry@v2 + with: + registry: ITensor/ITensorRegistry + ssh-key: ${{ secrets.DOCUMENTER_KEY }} + - uses: julia-actions/julia-runtest@v1 diff --git a/.github/workflows/CompatHelper.yml b/.github/workflows/CompatHelper.yml index cba9134..683c6a6 100644 --- a/.github/workflows/CompatHelper.yml +++ b/.github/workflows/CompatHelper.yml @@ -13,4 +13,4 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} COMPATHELPER_PRIV: ${{ secrets.DOCUMENTER_KEY }} - run: julia -e 'using CompatHelper; CompatHelper.main()' + run: julia -e 'using CompatHelper; CompatHelper.main(; use_existing_registries=true)' diff --git a/templates/github/.github/workflows/AddITensorRegistry.yml b/templates/github/.github/workflows/AddITensorRegistry.yml new file mode 100644 index 0000000..08c59d2 --- /dev/null +++ b/templates/github/.github/workflows/AddITensorRegistry.yml @@ -0,0 +1,14 @@ +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: julia-actions/setup-julia@v2 + with: + version: "1" + - uses: julia-actions/cache@v2 + - uses: julia-actions/add-julia-registry@v2 + with: + registry: ITensor/ITensorRegistry + ssh-key: ${{ secrets.DOCUMENTER_KEY }} + - uses: julia-actions/julia-runtest@v1 diff --git a/templates/github/.github/workflows/CompatHelper.yml b/templates/github/.github/workflows/CompatHelper.yml index cba9134..683c6a6 100644 --- a/templates/github/.github/workflows/CompatHelper.yml +++ b/templates/github/.github/workflows/CompatHelper.yml @@ -13,4 +13,4 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} COMPATHELPER_PRIV: ${{ secrets.DOCUMENTER_KEY }} - run: julia -e 'using CompatHelper; CompatHelper.main()' + run: julia -e 'using CompatHelper; CompatHelper.main(; use_existing_registries=true)' From a72f11e97f1b1ebbcab997f6b643486f5a6f2631 Mon Sep 17 00:00:00 2001 From: mtfishman Date: Fri, 7 Feb 2025 18:31:17 -0500 Subject: [PATCH 2/7] Delete add registry workflow, update CompatHelper to use ITensorActions --- .github/workflows/AddITensorRegistry.yml | 14 -------------- .github/workflows/CompatHelper.yml | 18 ++++++++---------- .../.github/workflows/AddITensorRegistry.yml | 14 -------------- .../github/.github/workflows/CompatHelper.yml | 18 ++++++++---------- 4 files changed, 16 insertions(+), 48 deletions(-) delete mode 100644 .github/workflows/AddITensorRegistry.yml delete mode 100644 templates/github/.github/workflows/AddITensorRegistry.yml diff --git a/.github/workflows/AddITensorRegistry.yml b/.github/workflows/AddITensorRegistry.yml deleted file mode 100644 index 08c59d2..0000000 --- a/.github/workflows/AddITensorRegistry.yml +++ /dev/null @@ -1,14 +0,0 @@ -jobs: - test: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: julia-actions/setup-julia@v2 - with: - version: "1" - - uses: julia-actions/cache@v2 - - uses: julia-actions/add-julia-registry@v2 - with: - registry: ITensor/ITensorRegistry - ssh-key: ${{ secrets.DOCUMENTER_KEY }} - - uses: julia-actions/julia-runtest@v1 diff --git a/.github/workflows/CompatHelper.yml b/.github/workflows/CompatHelper.yml index 683c6a6..d16c064 100644 --- a/.github/workflows/CompatHelper.yml +++ b/.github/workflows/CompatHelper.yml @@ -1,16 +1,14 @@ -name: CompatHelper +name: "CompatHelper" + on: schedule: - cron: 0 0 * * * workflow_dispatch: +permissions: + contents: write + pull-requests: write + jobs: CompatHelper: - runs-on: ubuntu-latest - steps: - - name: Pkg.add("CompatHelper") - run: julia -e 'using Pkg; Pkg.add("CompatHelper")' - - name: CompatHelper.main() - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - COMPATHELPER_PRIV: ${{ secrets.DOCUMENTER_KEY }} - run: julia -e 'using CompatHelper; CompatHelper.main(; use_existing_registries=true)' + name: "CompatHelper" + uses: "ITensor/ITensorActions/.github/workflows/CompatHelper.yml@main" diff --git a/templates/github/.github/workflows/AddITensorRegistry.yml b/templates/github/.github/workflows/AddITensorRegistry.yml deleted file mode 100644 index 08c59d2..0000000 --- a/templates/github/.github/workflows/AddITensorRegistry.yml +++ /dev/null @@ -1,14 +0,0 @@ -jobs: - test: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: julia-actions/setup-julia@v2 - with: - version: "1" - - uses: julia-actions/cache@v2 - - uses: julia-actions/add-julia-registry@v2 - with: - registry: ITensor/ITensorRegistry - ssh-key: ${{ secrets.DOCUMENTER_KEY }} - - uses: julia-actions/julia-runtest@v1 diff --git a/templates/github/.github/workflows/CompatHelper.yml b/templates/github/.github/workflows/CompatHelper.yml index 683c6a6..d16c064 100644 --- a/templates/github/.github/workflows/CompatHelper.yml +++ b/templates/github/.github/workflows/CompatHelper.yml @@ -1,16 +1,14 @@ -name: CompatHelper +name: "CompatHelper" + on: schedule: - cron: 0 0 * * * workflow_dispatch: +permissions: + contents: write + pull-requests: write + jobs: CompatHelper: - runs-on: ubuntu-latest - steps: - - name: Pkg.add("CompatHelper") - run: julia -e 'using Pkg; Pkg.add("CompatHelper")' - - name: CompatHelper.main() - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - COMPATHELPER_PRIV: ${{ secrets.DOCUMENTER_KEY }} - run: julia -e 'using CompatHelper; CompatHelper.main(; use_existing_registries=true)' + name: "CompatHelper" + uses: "ITensor/ITensorActions/.github/workflows/CompatHelper.yml@main" From 6c5b9af7604e2003908fa0725c61628c9d1456d7 Mon Sep 17 00:00:00 2001 From: mtfishman Date: Fri, 7 Feb 2025 18:34:09 -0500 Subject: [PATCH 3/7] Bump version --- Project.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Project.toml b/Project.toml index efb9510..370c230 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "ITensorPkgSkeleton" uuid = "3d388ab1-018a-49f4-ae50-18094d5f71ea" authors = ["ITensor developers and contributors"] -version = "0.2.2" +version = "0.2.3" [deps] DocStringExtensions = "ffbed154-4ef7-542d-bbb7-c09d3a79fcae" From 845ae8771007dfa8834c603e8d18662dee3e6035 Mon Sep 17 00:00:00 2001 From: mtfishman Date: Sat, 8 Feb 2025 15:48:16 -0500 Subject: [PATCH 4/7] Update for latest ITensorActions shared CompatHelper workflow --- .github/workflows/CompatHelper.yml | 3 +++ templates/github/.github/workflows/CompatHelper.yml | 3 +++ 2 files changed, 6 insertions(+) diff --git a/.github/workflows/CompatHelper.yml b/.github/workflows/CompatHelper.yml index d16c064..08226b6 100644 --- a/.github/workflows/CompatHelper.yml +++ b/.github/workflows/CompatHelper.yml @@ -12,3 +12,6 @@ jobs: CompatHelper: name: "CompatHelper" uses: "ITensor/ITensorActions/.github/workflows/CompatHelper.yml@main" + with: + local-registry-names: "ITensorRegistry" + local-registry-urls: "https://github.com/ITensor/ITensorRegistry.git" diff --git a/templates/github/.github/workflows/CompatHelper.yml b/templates/github/.github/workflows/CompatHelper.yml index d16c064..08226b6 100644 --- a/templates/github/.github/workflows/CompatHelper.yml +++ b/templates/github/.github/workflows/CompatHelper.yml @@ -12,3 +12,6 @@ jobs: CompatHelper: name: "CompatHelper" uses: "ITensor/ITensorActions/.github/workflows/CompatHelper.yml@main" + with: + local-registry-names: "ITensorRegistry" + local-registry-urls: "https://github.com/ITensor/ITensorRegistry.git" From db0432c7274b8f64ebed205f55fe136246ed4097 Mon Sep 17 00:00:00 2001 From: mtfishman Date: Sat, 8 Feb 2025 17:26:08 -0500 Subject: [PATCH 5/7] Simplify CompatHelper workflow --- .github/workflows/CompatHelper.yml | 1 - templates/github/.github/workflows/CompatHelper.yml | 1 - 2 files changed, 2 deletions(-) diff --git a/.github/workflows/CompatHelper.yml b/.github/workflows/CompatHelper.yml index 08226b6..b42c123 100644 --- a/.github/workflows/CompatHelper.yml +++ b/.github/workflows/CompatHelper.yml @@ -13,5 +13,4 @@ jobs: name: "CompatHelper" uses: "ITensor/ITensorActions/.github/workflows/CompatHelper.yml@main" with: - local-registry-names: "ITensorRegistry" local-registry-urls: "https://github.com/ITensor/ITensorRegistry.git" diff --git a/templates/github/.github/workflows/CompatHelper.yml b/templates/github/.github/workflows/CompatHelper.yml index 08226b6..b42c123 100644 --- a/templates/github/.github/workflows/CompatHelper.yml +++ b/templates/github/.github/workflows/CompatHelper.yml @@ -13,5 +13,4 @@ jobs: name: "CompatHelper" uses: "ITensor/ITensorActions/.github/workflows/CompatHelper.yml@main" with: - local-registry-names: "ITensorRegistry" local-registry-urls: "https://github.com/ITensor/ITensorRegistry.git" From 848b90a004e5fb009b08523ff7c2e3110f53bbb7 Mon Sep 17 00:00:00 2001 From: mtfishman Date: Sat, 8 Feb 2025 20:23:43 -0500 Subject: [PATCH 6/7] Change CompatHelper option to localregistry --- .github/workflows/CompatHelper.yml | 2 +- templates/github/.github/workflows/CompatHelper.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/CompatHelper.yml b/.github/workflows/CompatHelper.yml index b42c123..a3015f8 100644 --- a/.github/workflows/CompatHelper.yml +++ b/.github/workflows/CompatHelper.yml @@ -13,4 +13,4 @@ jobs: name: "CompatHelper" uses: "ITensor/ITensorActions/.github/workflows/CompatHelper.yml@main" with: - local-registry-urls: "https://github.com/ITensor/ITensorRegistry.git" + localregistry: "https://github.com/ITensor/ITensorRegistry.git" diff --git a/templates/github/.github/workflows/CompatHelper.yml b/templates/github/.github/workflows/CompatHelper.yml index b42c123..a3015f8 100644 --- a/templates/github/.github/workflows/CompatHelper.yml +++ b/templates/github/.github/workflows/CompatHelper.yml @@ -13,4 +13,4 @@ jobs: name: "CompatHelper" uses: "ITensor/ITensorActions/.github/workflows/CompatHelper.yml@main" with: - local-registry-urls: "https://github.com/ITensor/ITensorRegistry.git" + localregistry: "https://github.com/ITensor/ITensorRegistry.git" From 0d5e60ec9f22c062f2d6abcc9b42fd724a30924a Mon Sep 17 00:00:00 2001 From: mtfishman Date: Sun, 9 Feb 2025 14:54:03 -0500 Subject: [PATCH 7/7] Change style of CompatHelper job title --- .github/workflows/CompatHelper.yml | 2 +- templates/github/.github/workflows/CompatHelper.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/CompatHelper.yml b/.github/workflows/CompatHelper.yml index a3015f8..456fa05 100644 --- a/.github/workflows/CompatHelper.yml +++ b/.github/workflows/CompatHelper.yml @@ -9,7 +9,7 @@ permissions: pull-requests: write jobs: - CompatHelper: + compat-helper: name: "CompatHelper" uses: "ITensor/ITensorActions/.github/workflows/CompatHelper.yml@main" with: diff --git a/templates/github/.github/workflows/CompatHelper.yml b/templates/github/.github/workflows/CompatHelper.yml index a3015f8..456fa05 100644 --- a/templates/github/.github/workflows/CompatHelper.yml +++ b/templates/github/.github/workflows/CompatHelper.yml @@ -9,7 +9,7 @@ permissions: pull-requests: write jobs: - CompatHelper: + compat-helper: name: "CompatHelper" uses: "ITensor/ITensorActions/.github/workflows/CompatHelper.yml@main" with: