-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #98 from bioinfodlsu/input
Disable button if computation is ongoing + Revise the code for clearing dcc Store data
- Loading branch information
Showing
90 changed files
with
8,408 additions
and
8,375 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,32 +1,32 @@ | ||
--- | ||
name: Bug report | ||
about: Create a report to help us improve | ||
title: '' | ||
labels: 'bug' | ||
assignees: '' | ||
|
||
--- | ||
|
||
**Describe the bug** | ||
A clear and concise description of what the bug is. | ||
|
||
**To reproduce** | ||
Steps to reproduce the behavior: | ||
1. Go to '...' | ||
2. Click on '...' | ||
3. Scroll down to '...' | ||
4. See error | ||
|
||
**Expected behavior** | ||
A clear and concise description of what you expected to happen. | ||
|
||
**Screenshots** | ||
If applicable, add screenshots to help explain your problem. | ||
|
||
**Platform** | ||
- OS (Please indicate the version as well): [e.g., Windows 10, Ubuntu Jammy Jellyfish] | ||
- Browser: [e.g., Chrome, Safari] | ||
- Browser version: [e.g., 114.0.5735.199. If unspecified, the latest browser version will be assumed] | ||
|
||
**Additional context** | ||
Add any other context about the problem here. | ||
--- | ||
name: Bug report | ||
about: Create a report to help us improve | ||
title: '' | ||
labels: 'bug' | ||
assignees: '' | ||
|
||
--- | ||
|
||
**Describe the bug** | ||
A clear and concise description of what the bug is. | ||
|
||
**To reproduce** | ||
Steps to reproduce the behavior: | ||
1. Go to '...' | ||
2. Click on '...' | ||
3. Scroll down to '...' | ||
4. See error | ||
|
||
**Expected behavior** | ||
A clear and concise description of what you expected to happen. | ||
|
||
**Screenshots** | ||
If applicable, add screenshots to help explain your problem. | ||
|
||
**Platform** | ||
- OS (Please indicate the version as well): [e.g., Windows 10, Ubuntu Jammy Jellyfish] | ||
- Browser: [e.g., Chrome, Safari] | ||
- Browser version: [e.g., 114.0.5735.199. If unspecified, the latest browser version will be assumed] | ||
|
||
**Additional context** | ||
Add any other context about the problem here. |
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 |
---|---|---|
@@ -1,20 +1,20 @@ | ||
--- | ||
name: Feature request | ||
about: Suggest an idea for this project | ||
title: '' | ||
labels: 'enhancement' | ||
assignees: '' | ||
|
||
--- | ||
|
||
**Is your feature request related to a problem? Please describe.** | ||
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] | ||
|
||
**Describe the solution you'd like** | ||
A clear and concise description of what you want to happen. | ||
|
||
**Describe alternatives you've considered** | ||
A clear and concise description of any alternative solutions or features you've considered. | ||
|
||
**Additional context** | ||
Add any other context or screenshots about the feature request here. | ||
--- | ||
name: Feature request | ||
about: Suggest an idea for this project | ||
title: '' | ||
labels: 'enhancement' | ||
assignees: '' | ||
|
||
--- | ||
|
||
**Is your feature request related to a problem? Please describe.** | ||
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] | ||
|
||
**Describe the solution you'd like** | ||
A clear and concise description of what you want to happen. | ||
|
||
**Describe alternatives you've considered** | ||
A clear and concise description of any alternative solutions or features you've considered. | ||
|
||
**Additional context** | ||
Add any other context or screenshots about the feature request here. |
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 |
---|---|---|
@@ -1,8 +1,8 @@ | ||
on: [push, pull_request] | ||
name: Check for syntax errors | ||
jobs: | ||
check-for-syntax-errors: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: cclauss/Find-Python-syntax-errors-action@master | ||
on: [push, pull_request] | ||
name: Check for syntax errors | ||
jobs: | ||
check-for-syntax-errors: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: cclauss/Find-Python-syntax-errors-action@master |
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 |
---|---|---|
@@ -1,30 +1,30 @@ | ||
name: Delete package versions | ||
|
||
on: | ||
workflow_run: | ||
workflows: [Create and publish a Docker image] | ||
types: [completed] | ||
branches: [main] | ||
|
||
jobs: | ||
delete-versions: | ||
runs-on: ubuntu-latest | ||
if: ${{ github.event.workflow_run.conclusion == 'success' }} | ||
|
||
steps: | ||
- uses: actions/delete-package-versions@v4 | ||
with: | ||
package-name: 'rice-pilaf/app' | ||
package-type: 'container' | ||
min-versions-to-keep: 1 | ||
- uses: actions/delete-package-versions@v4 | ||
with: | ||
package-name: 'rice-pilaf/workflow' | ||
package-type: 'container' | ||
min-versions-to-keep: 1 | ||
|
||
on-failure: | ||
runs-on: ubuntu-latest | ||
if: ${{ github.event.workflow_run.conclusion == 'failure' }} | ||
steps: | ||
- run: echo 'The triggering workflow failed' | ||
name: Delete package versions | ||
|
||
on: | ||
workflow_run: | ||
workflows: [Create and publish a Docker image] | ||
types: [completed] | ||
branches: [main] | ||
|
||
jobs: | ||
delete-versions: | ||
runs-on: ubuntu-latest | ||
if: ${{ github.event.workflow_run.conclusion == 'success' }} | ||
|
||
steps: | ||
- uses: actions/delete-package-versions@v4 | ||
with: | ||
package-name: 'rice-pilaf/app' | ||
package-type: 'container' | ||
min-versions-to-keep: 1 | ||
- uses: actions/delete-package-versions@v4 | ||
with: | ||
package-name: 'rice-pilaf/workflow' | ||
package-type: 'container' | ||
min-versions-to-keep: 1 | ||
|
||
on-failure: | ||
runs-on: ubuntu-latest | ||
if: ${{ github.event.workflow_run.conclusion == 'failure' }} | ||
steps: | ||
- run: echo 'The triggering workflow failed' |
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 |
---|---|---|
@@ -1,67 +1,67 @@ | ||
name: Create and publish a Docker image | ||
|
||
on: | ||
workflow_run: | ||
workflows: [Check for syntax errors] | ||
types: [completed] | ||
branches: [main] | ||
|
||
env: | ||
REGISTRY: ghcr.io | ||
IMAGE_NAME: ${{ github.repository }} | ||
|
||
jobs: | ||
build-and-push-image: | ||
runs-on: ubuntu-latest | ||
if: ${{ github.event.workflow_run.conclusion == 'success' }} | ||
strategy: | ||
fail-fast: false | ||
matrix: # Cannot use env variables inside matrix | ||
include: | ||
- dockerfile: Dockerfile-app # Change to Dockerfile of app | ||
image: ghcr.io/bioinfodlsu/rice-pilaf/app | ||
- dockerfile: Dockerfile-workflow # Change to Dockerfile of workflow | ||
image: ghcr.io/bioinfodlsu/rice-pilaf/workflow | ||
permissions: | ||
contents: read | ||
packages: write | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Extract metadata (tags, labels) for Docker | ||
id: meta | ||
uses: docker/metadata-action@v4 | ||
with: | ||
images: ${{ matrix.image }} | ||
|
||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v2 | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v2 | ||
|
||
- name: Log in to the Container registry | ||
uses: docker/login-action@v2 | ||
with: | ||
registry: ${{ env.REGISTRY }} | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Build and push Docker image | ||
uses: docker/build-push-action@v3 | ||
with: | ||
context: . | ||
cache-from: type=gha | ||
cache-to: type=gha, mode=max | ||
file: ${{ matrix.dockerfile }} | ||
push: true | ||
tags: ${{ steps.meta.outputs.tags }} | ||
labels: ${{ steps.meta.outputs.labels }} | ||
|
||
on-failure: | ||
runs-on: ubuntu-latest | ||
if: ${{ github.event.workflow_run.conclusion == 'failure' }} | ||
steps: | ||
- run: echo 'The triggering workflow failed' | ||
name: Create and publish a Docker image | ||
|
||
on: | ||
workflow_run: | ||
workflows: [Check for syntax errors] | ||
types: [completed] | ||
branches: [main] | ||
|
||
env: | ||
REGISTRY: ghcr.io | ||
IMAGE_NAME: ${{ github.repository }} | ||
|
||
jobs: | ||
build-and-push-image: | ||
runs-on: ubuntu-latest | ||
if: ${{ github.event.workflow_run.conclusion == 'success' }} | ||
strategy: | ||
fail-fast: false | ||
matrix: # Cannot use env variables inside matrix | ||
include: | ||
- dockerfile: Dockerfile-app # Change to Dockerfile of app | ||
image: ghcr.io/bioinfodlsu/rice-pilaf/app | ||
- dockerfile: Dockerfile-workflow # Change to Dockerfile of workflow | ||
image: ghcr.io/bioinfodlsu/rice-pilaf/workflow | ||
permissions: | ||
contents: read | ||
packages: write | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Extract metadata (tags, labels) for Docker | ||
id: meta | ||
uses: docker/metadata-action@v4 | ||
with: | ||
images: ${{ matrix.image }} | ||
|
||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v2 | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v2 | ||
|
||
- name: Log in to the Container registry | ||
uses: docker/login-action@v2 | ||
with: | ||
registry: ${{ env.REGISTRY }} | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Build and push Docker image | ||
uses: docker/build-push-action@v3 | ||
with: | ||
context: . | ||
cache-from: type=gha | ||
cache-to: type=gha, mode=max | ||
file: ${{ matrix.dockerfile }} | ||
push: true | ||
tags: ${{ steps.meta.outputs.tags }} | ||
labels: ${{ steps.meta.outputs.labels }} | ||
|
||
on-failure: | ||
runs-on: ubuntu-latest | ||
if: ${{ github.event.workflow_run.conclusion == 'failure' }} | ||
steps: | ||
- run: echo 'The triggering workflow failed' |
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 |
---|---|---|
@@ -1,20 +1,20 @@ | ||
name: Mirror main to demo branch | ||
|
||
on: | ||
workflow_run: | ||
workflows: [Check for syntax errors] | ||
types: [completed] | ||
branches: [main] | ||
|
||
jobs: | ||
mirror_job: | ||
runs-on: ubuntu-latest | ||
name: Mirror main branch to demo branch | ||
steps: | ||
- name: Mirror action step | ||
id: mirror | ||
uses: google/[email protected] | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
source: 'main' | ||
dest: 'demo' | ||
name: Mirror main to demo branch | ||
|
||
on: | ||
workflow_run: | ||
workflows: [Check for syntax errors] | ||
types: [completed] | ||
branches: [main] | ||
|
||
jobs: | ||
mirror_job: | ||
runs-on: ubuntu-latest | ||
name: Mirror main branch to demo branch | ||
steps: | ||
- name: Mirror action step | ||
id: mirror | ||
uses: google/[email protected] | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
source: 'main' | ||
dest: 'demo' |
Oops, something went wrong.