Skip to content

[CI] if latest contexts have changed, retrieve the previous contexts' test cache and then use ./setup_test_cache u to update #1297

[CI] if latest contexts have changed, retrieve the previous contexts' test cache and then use ./setup_test_cache u to update

[CI] if latest contexts have changed, retrieve the previous contexts' test cache and then use ./setup_test_cache u to update #1297

Workflow file for this run

name: CI
on:
## uncomment before merging to master once test suite is finalized
push:
branches:
- master
tags:
- '*'
pull_request:
branches:
- master
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
CRDS_TEST_ROOT: /tmp
CRDS_PATH: /tmp/crds-cache-default-test
CRDS_TESTING_CACHE: /tmp/crds-cache-test
CRDS_SERVER_URL: https://hst-crds.stsci.edu
CRDS_CLIENT_RETRY_COUNT: 3
CRDS_CLIENT_RETRY_DELAY_SECONDS: 20
LD_LIBRARY_PATH: /usr/local/lib
defaults:
run:
shell: bash -leo pipefail {0} {0}
jobs:
cache:
uses: ./.github/workflows/cache.yml
pytest:
name: ${{ matrix.runs-on }} Python ${{ matrix.python-version }}
needs: [ cache ]
runs-on: ${{ matrix.runs-on }}
strategy:
fail-fast: false
matrix:
runs-on:
- ubuntu-latest
- macos-latest
python-version:
- '3.10'
- '3.11'
- '3.12'
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: mamba-org/setup-micromamba@v2
with:
environment-name: crds-testing
create-args: >-
python=${{ matrix.python-version }}
asdf
astropy
filelock
fitsverify
numpy
parsley
pillow
requests
scipy
six
init-shell: bash
cache-environment: true
cache-downloads: true
- run: pip install roman-datamodels git+https://github.com/spacetelescope/jwst
- run: pip uninstall --yes crds && ./install && pip install .[submission,test,docs,synphot]
- id: cache
uses: actions/cache@v4
with:
path: |
${{ needs.cache.outputs.path }}
${{ needs.cache.outputs.testing_cache }}
key: ${{ needs.cache.outputs.key }}
- run: ./runtests --cover