Skip to content

Commit

Permalink
Add ITensorRegistry to workflows and enable in CompatHelper
Browse files Browse the repository at this point in the history
  • Loading branch information
mtfishman committed Feb 7, 2025
1 parent 974d356 commit 1c0456e
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 2 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/AddITensorRegistry.yml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion .github/workflows/CompatHelper.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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)'
14 changes: 14 additions & 0 deletions templates/github/.github/workflows/AddITensorRegistry.yml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion templates/github/.github/workflows/CompatHelper.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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)'

0 comments on commit 1c0456e

Please sign in to comment.