From e0e24a60b75dce12297024bb5182c8c4a2c2092d Mon Sep 17 00:00:00 2001 From: fynnbe Date: Mon, 19 Feb 2024 14:34:06 +0100 Subject: [PATCH] start adding gh workflows --- .github/workflows/stage.yaml | 25 +++++++++++++++++++++++++ .github/workflows/test.yaml | 16 ++++++++++++++++ requirements.txt | 7 +++++++ 3 files changed, 48 insertions(+) create mode 100644 .github/workflows/stage.yaml create mode 100644 .github/workflows/test.yaml create mode 100644 requirements.txt diff --git a/.github/workflows/stage.yaml b/.github/workflows/stage.yaml new file mode 100644 index 00000000..4ad172de --- /dev/null +++ b/.github/workflows/stage.yaml @@ -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 diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml new file mode 100644 index 00000000..4dba83d3 --- /dev/null +++ b/.github/workflows/test.yaml @@ -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 diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 00000000..1aef6b92 --- /dev/null +++ b/requirements.txt @@ -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