Updated selection criteria for nircam_extract1d.rmap #1556
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| branches: | |
| - main | |
| tags: | |
| - '*' | |
| pull_request: | |
| branches: | |
| - main | |
| 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.11' | |
| - '3.12' | |
| # if this breaks, add an upper pin to `requires-python` and revert this to the latest working version | |
| - '3.*' | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| fetch-depth: 0 | |
| - uses: mamba-org/setup-micromamba@add3a49764cedee8ee24e82dfde87f5bc2914462 # v2.0.7 | |
| 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@v5 # v4.0.2 | |
| with: | |
| path: | | |
| ${{ needs.cache.outputs.path }} | |
| ${{ needs.cache.outputs.testing_cache }} | |
| key: ${{ needs.cache.outputs.key }} | |
| - run: ./runtests --cover |