Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add webbpsf and poppy to base environment #58

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
24 changes: 23 additions & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,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 @@ -59,7 +60,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 @@ -70,13 +71,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
exclude:
- runs-on: macos-latest
python-version: 3.9
Expand Down Expand Up @@ -106,9 +116,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: ${{ matrix.package }} (${{ matrix.runs-on }}, Python ${{ matrix.python-version }})
needs: [ build ]
Expand Down Expand Up @@ -194,7 +210,13 @@ 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 }}
- if: matrix.data != ''
uses: actions/cache@v3
with:
path: 'tests/data/'
key: data-${{ hashFiles('tests/data/*') }}
smoke_tests:
name: ${{ matrix.package }} (${{ matrix.runs-on }}, Python ${{ matrix.python-version }})
needs: [ build ]
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