From 07c15b4757ce9ec1de41b33b2acd2ad4e85e9ce1 Mon Sep 17 00:00:00 2001 From: fynnbe Date: Thu, 22 Feb 2024 14:08:06 +0100 Subject: [PATCH] use backoffice package in wfs --- .github/workflows/backup_call.yaml | 5 ++--- .github/workflows/publish_call.yaml | 5 ++--- .github/workflows/stage_call.yaml | 10 ++++------ .github/workflows/test.yaml | 2 +- 4 files changed, 9 insertions(+), 13 deletions(-) diff --git a/.github/workflows/backup_call.yaml b/.github/workflows/backup_call.yaml index 871508aa..344992d0 100644 --- a/.github/workflows/backup_call.yaml +++ b/.github/workflows/backup_call.yaml @@ -36,6 +36,5 @@ jobs: with: python-version: "3.12" cache: "pip" # caching pip dependencies - - run: pip install -r requirements.txt - - run: | - python scripts/backup.py + - run: pip install . + - run: backoffice backup diff --git a/.github/workflows/publish_call.yaml b/.github/workflows/publish_call.yaml index f0b06d71..061f01e5 100644 --- a/.github/workflows/publish_call.yaml +++ b/.github/workflows/publish_call.yaml @@ -44,9 +44,8 @@ jobs: with: python-version: "3.12" cache: "pip" # caching pip dependencies - - run: pip install -r requirements.txt - - run: | - python scripts/publish.py "${{ inputs.resource_id }}" "${{ inputs.stage_nr }}" + - run: pip install . + - run: backoffice publis "${{ inputs.resource_id }}" "${{ inputs.stage_nr }}" # - name: Publish to Zenodo # run: | # python .github/scripts/update_status.py "${{ inputs.resource_path }}" "Publishing to Zenodo" "5" diff --git a/.github/workflows/stage_call.yaml b/.github/workflows/stage_call.yaml index 62be614c..ee246766 100644 --- a/.github/workflows/stage_call.yaml +++ b/.github/workflows/stage_call.yaml @@ -43,10 +43,9 @@ jobs: with: python-version: "3.12" cache: "pip" # caching pip dependencies - - run: pip install -r requirements.txt + - run: pip install -r . - id: stage - run: | - python scripts/stage.py "${{ inputs.resource_id }}" "${{ inputs.package_url }}" + run: bakcoffice stage "${{ inputs.resource_id }}" "${{ inputs.package_url }}" test: needs: stage @@ -90,8 +89,7 @@ jobs: with: python-version: "3.12" cache: "pip" # caching pip dependencies - - run: pip install -r requirements.txt - - run: | - python scripts/conclude.py "${{ inputs.resource_id }}" "${{needs.stage.outputs.version}}" + - run: pip install . + - run: bakcoffice await-review "${{ inputs.resource_id }}" "${{needs.stage.outputs.version}}" # TODO: call emailer diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 7466aa78..07d74ee2 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -30,7 +30,7 @@ jobs: with: python-version: "3.12" cache: "pip" # caching pip dependencies - - run: pip install -r requirements.txt + - run: pip install -r .[dev] - run: black . - run: pyright -p pyproject.toml - run: pytest