Skip to content

Commit

Permalink
add webbpsf and poppy to base environment
Browse files Browse the repository at this point in the history
  • Loading branch information
zacharyburnett committed Feb 23, 2023
1 parent 96a9866 commit 13be59b
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
*.fits filter=lfs diff=lfs merge=lfs -text
*.asdf filter=lfs diff=lfs merge=lfs -text
tests/data/* filter=lfs diff=lfs merge=lfs -text
19 changes: 18 additions & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ defaults:
shell: bash -l {0}

env:
DATA_DIRECTORY: /home/runner/work/stenv/stenv/tests/data
CRDS_PATH: /tmp/crds_cache
PYSYN_CDBS: /tmp/trds

Expand Down Expand Up @@ -55,7 +56,7 @@ jobs:
strategy:
fail-fast: false
matrix:
package: [ acstools, asdf, ccdproc, costools, reftools, synphot, wfpc2tools ]
package: [ acstools, asdf, ccdproc, costools, poppy, reftools, synphot, wfpc2tools, webbpsf ]
runs-on: [ ubuntu-latest, macos-latest ]
python-version: [ '3.9', '3.10', '3.11' ]
include:
Expand All @@ -66,13 +67,22 @@ jobs:
- package: ccdproc
extras: [ test ]
- package: costools
- package: poppy
extras: [ test ]
#- package: pysynphot
# extras: [ test ]
- package: reftools
extras: [ test ]
- package: synphot
extras: [ test ]
- package: wfpc2tools
- package: webbpsf
extras: [ test ]
commands: [
'curl -L https://stsci.box.com/shared/static/ntb71b3uusf1kzgf9bss0hzbreoja5gg.gz -o webbpsf-data.gz',
'tar -xvzf webbpsf-data.gz -C $DATA_DIRECTORY',
]
data: true
steps:
- uses: actions/checkout@v3
- uses: mamba-org/provision-with-micromamba@v15
Expand All @@ -97,9 +107,15 @@ jobs:
with:
path: ${{ env.CRDS_PATH }}
key: crds-${{ matrix.package }}-${{ steps.crds-context.outputs.context }}
- if: matrix.data != ''
uses: actions/cache@v3
with:
path: 'tests/data/'
key: data-${{ hashFiles('tests/data/*') }}
- run: pytest -n auto ${{ matrix.pytest_args }} --pyargs ${{ matrix.package }}
env:
CRDS_SERVER_URL: ${{ matrix.env.CRDS_SERVER_URL }}
WEBBPSF_PATH: ${{ env.DATA_DIRECTORY }}/webbpsf-data
unit_tests_from_source:
name: run `${{ matrix.package }}` unit tests from source in Python ${{ matrix.python-version }} environment on ${{ matrix.runs-on }}
needs: [ build ]
Expand Down Expand Up @@ -180,6 +196,7 @@ jobs:
- run: pytest -n auto ${{ matrix.pytest_args }} ${{ matrix.test_directory }}
env:
CRDS_SERVER_URL: ${{ matrix.env.CRDS_SERVER_URL }}
WEBBPSF_PATH: ${{ env.DATA_DIRECTORY }}/webbpsf-data
working-directory: ${{ matrix.package }}
smoke_tests:
name: run `${{ matrix.package }}` smoke tests in Python ${{ matrix.python-version }} environment on ${{ matrix.runs-on }}
Expand Down
2 changes: 2 additions & 0 deletions environment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ dependencies:
- ginga
- jwst>=1.6.2
- nictools
- poppy
- pysynphot
- reftools
- stcal<1.3.4
Expand All @@ -40,3 +41,4 @@ dependencies:
- synphot
- wfc3tools
- wfpc2tools
- webbpsf

0 comments on commit 13be59b

Please sign in to comment.