Skip to content

Commit

Permalink
use backoffice package in wfs
Browse files Browse the repository at this point in the history
  • Loading branch information
FynnBe committed Feb 22, 2024
1 parent d5f4691 commit 07c15b4
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 13 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/backup_call.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
5 changes: 2 additions & 3 deletions .github/workflows/publish_call.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
10 changes: 4 additions & 6 deletions .github/workflows/stage_call.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 07c15b4

Please sign in to comment.