Skip to content

Commit

Permalink
start adding gh workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
FynnBe committed Feb 19, 2024
1 parent 7e4d397 commit e0e24a6
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/stage.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Stage new contribution

on:
workflow_dispatch:
inputs:
resource_id:
description: "Bioimage.io resource identifier"
required: true
type: string
package_url:
description: "Download URL of the resource package zip-file"
required: true
type: string

concurrency: ${{inputs.resource_id}}

jobs:
call:
uses: ./.github/workflows/stage_call.yml
with:
resource_id: ${{inputs.resource_id}}
S3_HOST: ${{vars.S3_HOST}}
S3_BUCKET: ${{vars.S3_BUCKET}}
S3_FOLDER: ${{vars.S3_FOLDER}}
secrets: inherit
16 changes: 16 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: test stage call

on: push

concurrency: ${{inputs.resource_id}}

jobs:
call:
uses: ./.github/workflows/stage_call.yml
with:
resource_id: ${{vars.TEST_PACKAGE_ID}}
package_url: ${{vars.TEST_PACKAGE_URL}}
S3_HOST: ${{vars.S3_HOST}}
S3_BUCKET: ${{vars.S3_TEST_BUCKET}} # using test bucket
S3_FOLDER: ${{vars.S3_TEST_FOLDER}} # using test folder
secrets: inherit
7 changes: 7 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
bioimageio.spec @ git+https://github.com/bioimage-io/spec-bioimage-io@adb33e04c84a40d981d51fdb9d22e718ec27ac35 # TODO: chenage to released version
loguru==0.7.2
minio==7.2.3
packaging==23.2
ruyaml==0.91.0
spdx-license-list==3.22
typer==0.9.0

0 comments on commit e0e24a6

Please sign in to comment.