Skip to content

Commit

Permalink
use reusable contexts workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
zacharyburnett committed Feb 1, 2024
1 parent 16624d5 commit 7b6ef51
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,11 @@ jobs:
if: steps.data_cache.outputs.cache-hit != 'true'
- run: python data/download.py
if: steps.data_cache.outputs.cache-hit != 'true'
crds_contexts:
uses: spacetelescope/crds/.github/workflows/contexts.yml@master
test:
name: run notebooks
needs: [ build, data ]
needs: [ build, data, crds_contexts ]
runs-on: ubuntu-latest
env:
CRDS_SERVER_URL: https://roman-crds-test.stsci.edu
Expand All @@ -89,15 +91,11 @@ jobs:
activate-environment: roman-data-workshop-env
environment-file: 00_install/environment.yml
use-only-tar-bz2: true
- run: echo "::set-output name=crds_context::$(crds list --operational-context)"
id: crds_context
- uses: actions/cache@v3
with:
path: ${{ env.CRDS_PATH }}
key: crds-jwst-datamodels-${{ steps.crds_context.outputs.crds_context }}
if: steps.crds_context.outputs.crds_context != ''
- run: crds sync --contexts ${{ steps.crds_context.outputs.crds_context }}
if: steps.crds_context.outputs.crds_context != ''
key: crds-jwst-datamodels-${{ needs.crds_contexts.outputs.roman }}
- run: crds sync --contexts ${{ needs.crds_contexts.outputs.roman }}
- uses: actions/cache@v3
with:
path: data/
Expand Down

0 comments on commit 7b6ef51

Please sign in to comment.