Skip to content

Commit

Permalink
create dummy cache
Browse files Browse the repository at this point in the history
  • Loading branch information
zacharyburnett committed Nov 25, 2024
1 parent b4a4ad2 commit 812d91e
Showing 1 changed file with 34 additions and 1 deletion.
35 changes: 34 additions & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -189,10 +189,43 @@ jobs:
- run: pip list
- run: pytest ${{ matrix.test-directory }} ${{ matrix.pytest-args }} -n auto --dist=loadscope
working-directory: ${{ matrix.package }}
dummy_cache:
needs: [ crds-contexts ]
runs-on: ubuntu-latest
env:
CRDS_TEST_ROOT: /tmp
CRDS_PATH: /tmp/crds-cache-default-test
CRDS_TESTING_CACHE: /tmp/crds-cache-test
steps:
- uses: actions/checkout@v4
with:
repository: spacetelescope/crds
- run: pip install git+https://github.com/spacetelescope/jwst roman-datamodels
- run: pip uninstall --yes crds && ./install && pip install .
- run: |
python -m crds.sync --all --stats --log-time --check-sha1sum --repair-files --organize=flat
python -m crds.sync --files l2d0959cj_pfl.fits n7p1032ao_apt.fits q5417413o_pct.fits xaf1429el_wcp.fits y2r1559to_apt.fits y2r16006o_pct.fits y951738kl_hv.fits yas2005el_hv.fits p7d1548qj_idc.fits 3241637sm_tmt.fits 41g16069m_tmg.fits 43h1909cm_tmc.fits 43h1240om_tmc.fits --stats --log-time
python -m crds.sync --contexts hst_cos.imap --fetch-references --log-time --stats
env:
CRDS_SERVER_URL: https://hst-crds.stsci.edu
CRDS_CONTEXT: hst_1194.pmap
- run: |
python -m crds.sync --all --stats --log-time --check-sha1sum --repair-files --organize=flat
python -m crds.sync --files jwst_niriss_flat_0000.fits jwst_miri_flat_0006.fits --stats --log-time
env:
CRDS_SERVER_URL: https://jwst-crds.stsci.edu
CRDS_CONTEXT: jwst_1298.pmap
- uses: actions/cache/save@v4
with:
path: |
${{ env.CRDS_PATH }}
${{ env.CRDS_TESTING_CACHE }}
key: test-cache-hst_1194.pmap-jwst_1298.pmap
crds_test_cache:
name: retrieve CRDS test cache
# uses: spacetelescope/crds/.github/workflows/cache.yml@79766e965b9053632fb82d0c86c1d6988b5b934b # 12.0.6
uses: zacharyburnett/crds/.github/workflows/cache.yml@ci/update_partial_cache
test_crds_with_data:
test_crds:
needs: [ build, crds_test_cache ]
strategy:
fail-fast: false
Expand Down

0 comments on commit 812d91e

Please sign in to comment.