Skip to content

Commit 1d87606

Browse files
authored
Add IntegrationTest workflow (#11)
1 parent 5eeaf22 commit 1d87606

File tree

4 files changed

+65
-1
lines changed

4 files changed

+65
-1
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: "IntegrationTest"
2+
3+
on:
4+
push:
5+
branches:
6+
- 'main'
7+
tags: '*'
8+
paths:
9+
- 'Project.toml'
10+
pull_request:
11+
paths:
12+
- 'Project.toml'
13+
14+
jobs:
15+
integration-test:
16+
name: "IntegrationTest"
17+
strategy:
18+
matrix:
19+
repo:
20+
- 'ITensor/BlockSparseArrays.jl'
21+
- 'ITensor/QuantumOperatorDefinitions.jl'
22+
- 'ITensor/TensorAlgebra.jl'
23+
uses: "ITensor/ITensorActions/.github/workflows/IntegrationTest.yml@main"
24+
with:
25+
localregistry: "https://github.com/ITensor/ITensorRegistry.git"
26+
repo: "${{ matrix.repo }}"
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: "Integration Request"
2+
3+
on:
4+
issue_comment:
5+
types: [created]
6+
7+
jobs:
8+
integrationrequest:
9+
if: |
10+
github.event.issue.pull_request &&
11+
contains(fromJSON('["OWNER", "COLLABORATOR", "MEMBER"]'), github.event.comment.author_association)
12+
uses: ITensor/ITensorActions/.github/workflows/IntegrationTestRequest.yml@main
13+
with:
14+
localregistry: https://github.com/ITensor/ITensorRegistry.git

.github/workflows/Registrator.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Register Package
2+
on:
3+
workflow_dispatch:
4+
pull_request:
5+
types:
6+
- closed
7+
paths:
8+
- 'Project.toml'
9+
branches:
10+
- 'master'
11+
- 'main'
12+
13+
permissions:
14+
contents: write
15+
pull-requests: write
16+
17+
jobs:
18+
Register:
19+
if: github.event_name == 'workflow_dispatch' || github.event.pull_request.merged == true
20+
uses: "ITensor/ITensorActions/.github/workflows/Registrator.yml@main"
21+
with:
22+
localregistry: ITensor/ITensorRegistry
23+
secrets:
24+
REGISTRATOR_KEY: ${{ secrets.REGISTRATOR_KEY }}

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "SymmetrySectors"
22
uuid = "f8a8ad64-adbc-4fce-92f7-ffe2bb36a86e"
33
authors = ["ITensor developers <[email protected]> and contributors"]
4-
version = "0.1.4"
4+
version = "0.1.5"
55

66
[deps]
77
BlockArrays = "8e7c35d0-a365-5155-bbbb-fb81a777f24e"

0 commit comments

Comments
 (0)