Skip to content

Commit

Permalink
extend wf call testing
Browse files Browse the repository at this point in the history
  • Loading branch information
FynnBe committed Feb 22, 2024
1 parent 3b3e632 commit 6847ac9
Showing 1 changed file with 44 additions and 6 deletions.
50 changes: 44 additions & 6 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,58 @@ concurrency: test

env:
S3_HOST: ${{vars.S3_HOST}}
S3_BUCKET: ${{vars.S3_TEST_BUCKET}}
S3_FOLDER: ${{vars.S3_TEST_FOLDER}}
S3_BUCKET: ${{vars.S3_TEST_BUCKET}} # testing!
S3_FOLDER: ${{vars.S3_TEST_FOLDER}} # testing!
ZENODO_URL: ${{vars.ZENODO_TEST_URL}} # testing!
ZENODO_TEST_URL: ${{vars.ZENODO_TEST_URL}}

S3_ACCESS_KEY_ID: ${{secrets.S3_ACCESS_KEY_ID}}
S3_SECRET_ACCESS_KEY: ${{secrets.S3_SECRET_ACCESS_KEY}}
ZENODO_API_ACCESS_TOKEN: ${{secrets.ZENODO_TEST_API_ACCESS_TOKEN}} # testing!
ZENODO_TEST_API_ACCESS_TOKEN: ${{secrets.ZENODO_TEST_API_ACCESS_TOKEN}}

jobs:
initial-cleanup:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: "pip" # caching pip dependencies
- run: pip install .
- run: backoffice wipe

test-stage-wf:
needs: initial-cleanup
uses: ./.github/workflows/stage_call.yaml
with:
resource_id: ${{vars.TEST_PACKAGE_ID}}
package_url: ${{vars.TEST_PACKAGE_URL}}
resource_id: ${{vars.TEST_PACKAGE_ID}} # testing!
package_url: ${{vars.TEST_PACKAGE_URL}} # testing!
S3_HOST: ${{vars.S3_HOST}}
S3_BUCKET: ${{vars.S3_TEST_BUCKET}} # testing!
S3_FOLDER: ${{vars.S3_TEST_FOLDER}}/ci # testing!
secrets: inherit

test-publish-wf:
needs: test-stage-wf
uses: ./.github/workflows/publish_call.yaml
with:
resource_id: ${{vars.TEST_PACKAGE_ID}} # testing!
stage_nr: 1
S3_HOST: ${{vars.S3_HOST}}
S3_BUCKET: ${{vars.S3_TEST_BUCKET}} # testing!
S3_FOLDER: ${{vars.S3_TEST_FOLDER}}/ci # testing!
ZENODO_URL: ${{vars.ZENODO_TEST_URL}} # testing!
secrets: inherit

test-backup-wf:
needs: test-publish-wf
uses: ./.github/workflows/backup_call.yaml
with:
S3_HOST: ${{vars.S3_HOST}}
S3_BUCKET: ${{vars.S3_TEST_BUCKET}} # using test bucket
S3_FOLDER: ${{vars.S3_TEST_FOLDER}}/ci # using test folder
S3_BUCKET: ${{vars.S3_TEST_BUCKET}} # testing!
S3_FOLDER: ${{vars.S3_TEST_FOLDER}}/ci # testing!
ZENODO_URL: ${{vars.ZENODO_TEST_URL}} # testing!
secrets: inherit

build:
Expand Down

0 comments on commit 6847ac9

Please sign in to comment.