From 812d91ef37e5553e1eef443e3515e5f1acbd339f Mon Sep 17 00:00:00 2001 From: zacharyburnett Date: Mon, 25 Nov 2024 14:13:04 -0500 Subject: [PATCH] create dummy cache --- .github/workflows/test.yaml | 35 ++++++++++++++++++++++++++++++++++- 1 file changed, 34 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 899bc33..c505200 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -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