-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into wrapper_dev
- Loading branch information
Showing
39 changed files
with
5,630 additions
and
148 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
name: 🐞 Bug report | ||
description: Create a report to help us improve (use this to report bugs only). | ||
title: "[BUG] <title>" | ||
labels: [🐞 bug] | ||
body: | ||
- type: checkboxes | ||
attributes: | ||
label: Is there an existing issue for this? | ||
description: Please search to see if an issue already exists for the bug you encountered. | ||
options: | ||
- label: I have searched the existing issues | ||
required: true | ||
- type: textarea | ||
attributes: | ||
label: Describe the bug | ||
description: A clear and concise description of what the bug is. Include images if relevant. | ||
placeholder: A bug happened! | ||
validations: | ||
required: true | ||
- type: textarea | ||
attributes: | ||
label: Screenshots [optional] | ||
description: | | ||
Add screenshots to help explain your problem. You can also add a video here. | ||
Tip: You can attach images or video files by clicking this area to highlight it and then dragging files in. | ||
validations: | ||
required: false | ||
- type: textarea | ||
attributes: | ||
label: Steps To Reproduce | ||
description: Steps to reproduce the bug. | ||
placeholder: | | ||
1. Visit '...' | ||
2. Click on '...' | ||
3. Scroll to '...' | ||
4. See error | ||
validations: | ||
required: true | ||
- type: textarea | ||
attributes: | ||
label: Expected behavior | ||
description: A clear and concise description of what you expected to happen | ||
validations: | ||
required: true | ||
- type: textarea | ||
attributes: | ||
label: Additional context | ||
description: | | ||
Links? References? Anything that will give us more context about the issue you are encountering! | ||
validations: | ||
required: false | ||
- type: dropdown | ||
id: assign | ||
attributes: | ||
label: Are you working on this? | ||
options: | ||
- "Yes" | ||
- "No" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: ✨ Idea [Feature request] | ||
description: Tell us about the idea you have ! | ||
title: "[Feature] <title>" | ||
labels: [idea] | ||
body: | ||
- type: markdown | ||
attributes: | ||
value: | | ||
Your suggestions are highly valuable. | ||
- type: textarea | ||
attributes: | ||
label: Feature description | ||
description: | | ||
Is your feature request related to a problem? A clear and concise description of what the feature is. | ||
validations: | ||
required: true | ||
- type: textarea | ||
attributes: | ||
label: Describe the solution | ||
description: A clear and concise description of what you want to happen. | ||
validations: | ||
required: true | ||
- type: textarea | ||
attributes: | ||
label: Describe alternatives | ||
description: | | ||
A clear and concise description of any alternative solutions or features you have considered. | ||
- type: textarea | ||
attributes: | ||
label: Additional context | ||
description: | | ||
Add any other additional context or screenshots about the feature request here. | ||
- type: dropdown | ||
id: assign | ||
attributes: | ||
label: Are you working on this? | ||
options: | ||
- "Yes" | ||
- "No" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
--- | ||
name: Download Artifact | ||
description: Download artifact from the same or different workflow | ||
|
||
inputs: | ||
name: | ||
description: Artifact to be downloaded | ||
required: true | ||
type: string | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- name: Download Artifact | ||
uses: actions/github-script@v6 | ||
with: | ||
script: | | ||
var inputs = ${{ toJSON(inputs) }} | ||
var artifactName = inputs['name'] | ||
let allArtifacts = await github.rest.actions.listWorkflowRunArtifacts({ | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
run_id: context.payload.workflow_run.id, | ||
}); | ||
let matchArtifact = allArtifacts.data.artifacts.filter((artifact) => { | ||
return artifact.name == artifactName | ||
})[0]; | ||
let download = await github.rest.actions.downloadArtifact({ | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
artifact_id: matchArtifact.id, | ||
archive_format: 'zip', | ||
}); | ||
let fs = require('fs'); | ||
fs.writeFileSync(`${process.env.GITHUB_WORKSPACE}/${artifactName}.zip`, Buffer.from(download.data)); | ||
- name: 'Unzip artifact' | ||
run: unzip ${{ inputs.name }}.zip | ||
shell: bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
### Describe the changes you have made in this PR | ||
|
||
_A clear and concise description of what you want to happen_ | ||
|
||
### Link this PR to an issue [optional] | ||
|
||
Fixes _#ISSUE-NUMBER_ | ||
|
||
### Checklist | ||
|
||
- [ ] Self-review of changed code | ||
- [ ] Added automated tests where applicable | ||
- [ ] Update Docs & Guides |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
name: Build & Deploy Documentation | ||
|
||
on: | ||
workflow_run: | ||
workflows: [Algorithm Analysis] | ||
types: | ||
- completed | ||
permissions: | ||
contents: read | ||
pages: write | ||
id-token: write | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Setup Pages | ||
uses: actions/configure-pages@v4 | ||
- name: Set up Python | ||
id: setup_python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.11" | ||
- name: Cache pip | ||
uses: actions/cache@v3 | ||
id: pip-cache | ||
with: | ||
key: ${{ runner.os }}-${{ env.pythonLocation }}-pip-${{ hashFiles('**/requirements.txt') }} | ||
path: ${{ env.pythonLocation }} | ||
if: steps.pip-cache.outputs.cache-hit != 'true' | ||
|
||
- name: Install dependencies | ||
run: | | ||
pip install -r requirements.txt | ||
# Action to download artifacts from a different workflow (analysis.yml) | ||
- name: 'Download artifact' | ||
if: ${{ github.event.workflow_run.conclusion == 'success' }} | ||
uses: ./.github/actions/download-artifact | ||
with: | ||
name: 'Figures' | ||
|
||
- name: Build html | ||
run: | | ||
mkdir docs/_static | ||
mv *.pdf docs/_static/ | ||
sphinx-apidoc -o docs src | ||
cd docs/ | ||
make html | ||
- name: Upload docs artifact | ||
uses: actions/upload-pages-artifact@v3 | ||
with: | ||
path: 'docs/_build/html' | ||
|
||
deploy: | ||
needs: build | ||
environment: | ||
name: github-pages | ||
url: ${{ steps.deployment.outputs.page_url }} | ||
|
||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Deploy to GitHub Pages | ||
id: deployment | ||
uses: actions/deploy-pages@v4 |
Oops, something went wrong.