Skip to content

Commit 9d00658

Browse files
committed
Initial commit: canary package for ITensor ecosystem workflow testing
0 parents  commit 9d00658

36 files changed

Lines changed: 801 additions & 0 deletions
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
---
2+
name: ITensorTestPackage.jl bug report
3+
about: Create a bug report to help us improve ITensorTestPackage.jl
4+
title: "[BUG] YOUR SHORT DESCRIPTION OF THE BUG HERE"
5+
labels: ["bug"]
6+
assignees: ''
7+
8+
---
9+
10+
**Description of bug**
11+
12+
Please give a brief description of the bug or unexpected behavior here.
13+
14+
**Minimal code demonstrating the bug or unexpected behavior**
15+
16+
If applicable, provide a minimal code that can be run to demonstrate the bug or unexpected behavior.
17+
18+
If you are unable to construct a minimal code that demonstrates the bug or unexpected behavior, provide detailed steps for how to reproduce the behavior you are seeing.
19+
20+
<details><summary>Minimal runnable code</summary><p>
21+
22+
```julia
23+
[YOUR MINIMAL RUNNABLE CODE HERE]
24+
```
25+
26+
</p></details>
27+
28+
29+
**Expected output or behavior**
30+
31+
Describe what you expected to happen.
32+
33+
If you provided a minimal code that can be run to demonstrate the bug or unexpected behavior, describe what you expected the output would be.
34+
35+
36+
**Actual output or behavior**
37+
38+
Describe what actually happened.
39+
40+
If you provided a minimal code that demonstrates the bug or unexpected behavior, provide the output you get from that code. If the code leads to an error or warning, include the full error or warning below.
41+
42+
<details><summary>Output of minimal runnable code</summary><p>
43+
44+
```julia
45+
[OUTPUT OF YOUR MINIMAL RUNNABLE CODE HERE]
46+
```
47+
48+
</p></details>
49+
50+
51+
**Version information**
52+
53+
- Output from `versioninfo()`:
54+
```julia
55+
julia> versioninfo()
56+
[YOUR OUTPUT HERE]
57+
```
58+
- Output from `using Pkg; Pkg.status("ITensorTestPackage")`:
59+
```julia
60+
julia> using Pkg; Pkg.status("ITensorTestPackage")
61+
[YOUR OUTPUT HERE]
62+
```
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
name: ITensorTestPackage.jl feature request
3+
about: Suggest an idea for ITensorTestPackage.jl
4+
title: "[ENHANCEMENT] YOUR SHORT DESCRIPTION OF THE FEATURE REQUEST HERE"
5+
labels: ["enhancement"]
6+
assignees: ''
7+
8+
---
9+
10+
**Is your feature request related to a problem? Please describe.**
11+
12+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
13+
14+
**Describe the solution you'd like**
15+
16+
A clear and concise description of what you want to happen.
17+
18+
**Describe alternatives you've considered**
19+
20+
A clear and concise description of any alternative solutions or features you've considered.
21+
22+
**Additional context**
23+
24+
Add any other context or screenshots about the feature request here.

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# Description
2+
3+
Please include a summary of the change and which issue is fixed (if applicable). Please also include relevant motivation and context. List any dependencies that are required for this change.
4+
5+
Fixes #(issue)
6+
7+
If practical and applicable, please include a minimal demonstration of the previous behavior and new behavior below.
8+
9+
<details><summary>Minimal demonstration of previous behavior</summary><p>
10+
11+
```julia
12+
[YOUR MINIMAL DEMONSTRATION OF PREVIOUS BEHAVIOR]
13+
```
14+
15+
</p></details>
16+
17+
<details><summary>Minimal demonstration of new behavior</summary><p>
18+
19+
```julia
20+
[YOUR MINIMAL DEMONSTRATION OF NEW BEHAVIOR]
21+
```
22+
23+
</p></details>
24+
25+
# How Has This Been Tested?
26+
27+
Please add tests that verify your changes to a file in the `test` directory.
28+
29+
Please give a summary of the tests that you added to verify your changes.
30+
31+
- [ ] Test A
32+
- [ ] Test B
33+
34+
# Checklist:
35+
36+
- [ ] My code follows the style guidelines of this project. Please run the [ITensorFormatter](https://github.com/ITensor/ITensorFormatter.jl) in the base directory of the repository (`~/.julia/dev/ITensorTestPackage`) to format your code according to our style guidelines.
37+
- [ ] I have performed a self-review of my own code.
38+
- [ ] I have commented my code, particularly in hard-to-understand areas.
39+
- [ ] I have added tests that verify the behavior of the changes I made.
40+
- [ ] I have made corresponding changes to the documentation.
41+
- [ ] My changes generate no new warnings.
42+
- [ ] Any dependent changes have been merged and published in downstream modules.

.github/dependabot.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
schedule:
6+
interval: "weekly"

.github/workflows/CompatHelper.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: "CompatHelper"
2+
on:
3+
schedule:
4+
- cron: "0 0 * * *"
5+
workflow_dispatch: ~
6+
permissions:
7+
contents: "write"
8+
pull-requests: "write"
9+
jobs:
10+
compat-helper:
11+
name: "CompatHelper"
12+
uses: "ITensor/ITensorActions/.github/workflows/CompatHelper.yml@main"
13+
with:
14+
localregistry: "https://github.com/ITensor/ITensorRegistry.git"
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: "Documentation"
2+
on:
3+
push:
4+
branches:
5+
- "main"
6+
tags: "*"
7+
pull_request: ~
8+
schedule:
9+
- cron: "1 4 * * 4"
10+
concurrency:
11+
group: "${{ github.workflow }}-${{ github.ref }}"
12+
cancel-in-progress: "${{ github.ref_name != github.event.repository.default_branch || github.ref != 'refs/tags/v*' }}"
13+
jobs:
14+
build-and-deploy-docs:
15+
name: "Documentation"
16+
uses: "ITensor/ITensorActions/.github/workflows/Documentation.yml@main"
17+
with:
18+
localregistry: "https://github.com/ITensor/ITensorRegistry.git"
19+
secrets:
20+
CODECOV_TOKEN: "${{ secrets.CODECOV_TOKEN }}"

.github/workflows/FormatCheck.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: "Format Check"
2+
on:
3+
pull_request_target:
4+
types:
5+
- "opened"
6+
- "synchronize"
7+
- "reopened"
8+
- "ready_for_review"
9+
permissions:
10+
contents: "read"
11+
actions: "write"
12+
pull-requests: "write"
13+
jobs:
14+
format-check:
15+
name: "Format Check"
16+
uses: "ITensor/ITensorActions/.github/workflows/FormatCheck.yml@main"
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: "Format Pull Request"
2+
on:
3+
schedule:
4+
- cron: "0 0 * * *"
5+
workflow_dispatch: ~
6+
issue_comment:
7+
types:
8+
- "created"
9+
permissions:
10+
contents: "write"
11+
pull-requests: "write"
12+
jobs:
13+
format-pull-request:
14+
name: "Format Pull Request"
15+
uses: "ITensor/ITensorActions/.github/workflows/FormatPullRequest.yml@main"
16+
secrets: "inherit"
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: "IntegrationTest"
2+
on:
3+
push:
4+
branches:
5+
- "main"
6+
tags: "*"
7+
paths:
8+
- "Project.toml"
9+
pull_request_target:
10+
types:
11+
- "opened"
12+
- "synchronize"
13+
- "reopened"
14+
- "ready_for_review"
15+
- "converted_to_draft"
16+
paths:
17+
- "Project.toml"
18+
jobs:
19+
integration-test:
20+
name: "IntegrationTest"
21+
strategy:
22+
fail-fast: false
23+
matrix:
24+
pkg:
25+
- "ITensorTestPackageDependent"
26+
uses: "ITensor/ITensorActions/.github/workflows/IntegrationTest.yml@main"
27+
secrets: "inherit"
28+
with:
29+
localregistry: "https://github.com/ITensor/ITensorRegistry.git"
30+
pkg: "${{ matrix.pkg }}"
31+
integration-gate:
32+
name: "IntegrationTest"
33+
needs: "integration-test"
34+
if: "${{ always() && needs.integration-test.result != 'skipped' }}"
35+
runs-on: "ubuntu-latest"
36+
steps:
37+
- name: "Fail if any downstream integration test failed"
38+
run: |
39+
echo "integration-test.result = ${{ needs.integration-test.result }}"
40+
test "${{ needs.integration-test.result }}" = "success"
41+
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: "Integration Test Request"
2+
on:
3+
issue_comment:
4+
types:
5+
- "created"
6+
jobs:
7+
integrationrequest:
8+
if: |
9+
github.event.issue.pull_request &&
10+
contains(fromJSON('["OWNER", "COLLABORATOR", "MEMBER"]'), github.event.comment.author_association)
11+
12+
uses: "ITensor/ITensorActions/.github/workflows/IntegrationTestRequest.yml@main"
13+
with:
14+
localregistry: "https://github.com/ITensor/ITensorRegistry.git"

0 commit comments

Comments
 (0)