Skip to content

Commit

Permalink
override environment after installing extra (#167)
Browse files Browse the repository at this point in the history
  • Loading branch information
zacharyburnett authored Aug 29, 2024
1 parent 3453e4d commit 7c2b666
Showing 1 changed file with 17 additions and 51 deletions.
68 changes: 17 additions & 51 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,59 +35,27 @@ jobs:
python-version: [ '3.10', '3.11', '3.12' ]
include:
- package: acstools
test-dependencies: >-
matplotlib
scipy
scikit-image
stsci.tools
stsci.imagestats
photutils
dask
pytest
pytest-astropy-header
pytest-remotedata
ci-watson
test-extras: test
pytest-args: --remote-data -v
- package: asdf
test-dependencies: >-
"lz4>=0.10"
"fsspec[http]>=2022.8.2"
"lz4>=0.10"
psutil
"pytest>=8"
pytest-remotedata
test-extras: tests
pytest-args: --remote-data --durations=10
- package: ccdproc
test-dependencies: >-
pytest-astropy>=0.10.0
memory_profiler
test-extras: test
pytest-args: -W ignore
- package: costools
test-dependencies: >-
pytest
pytest-cov
test-extras: test
- package: jwst
test-dependencies: >-
"ci-watson>=0.5.0"
"colorama>=0.4.1"
"readchar>=3.0"
ruff
"pytest>=6.0.0"
"pytest-cov>=2.9.0"
"pytest-doctestplus>=0.10.0"
"requests_mock>=1.0"
test-extras: test
crds-observatory: jwst
# - package: pysynphot
# test-dependencies: >-
# pytest
# pytest-remotedata
- package: reftools
test-dependencies: >-
pytest-remotedata
pytest-astropy-header
test-dependencies: test
- package: synphot
test-dependencies: >-
pytest-astropy
test-dependencies: test
- package: wfpc2tools
exclude:
- runs-on: macos-13
Expand Down Expand Up @@ -126,6 +94,9 @@ jobs:
init-shell: none
generate-run-shell: true
- run: pip install pytest pytest-xdist ${{ matrix.test-dependencies }}
- if: matrix.test-extras != ''
run: pip install ${{ matrix.package }}[${{ matrix.test-extras }}]
- run: micromamba update -f environment.yaml
- run: pip list
- run: pytest --pyargs ${{ matrix.package }} ${{ matrix.pytest-args }} -n auto --dist=loadscope
test_from_source:
Expand All @@ -139,18 +110,11 @@ jobs:
include:
- package: calcos
repository: spacetelescope/calcos
test-dependencies: >-
ci-watson
pytest
pytest-cov
test-extras: test
pytest-args: --slow
- package: drizzlepac
repository: spacetelescope/drizzlepac
test-dependencies: >-
ci_watson
crds
pytest
pytest-remotedata
test-extras: test
- package: hstcal
repository: spacetelescope/hstcal
test-dependencies: >-
Expand All @@ -163,9 +127,7 @@ jobs:
repository: spacetelescope/stistools
- package: stsynphot
repository: spacetelescope/stsynphot_refactor
test-dependencies: >-
pytest-astropy
ci-watson
test-extras: test
exclude:
- runs-on: macos-13
python-version: '3.10'
Expand Down Expand Up @@ -215,9 +177,13 @@ jobs:
ref: ${{ steps.package_version.outputs.version }}
fetch-depth: 0
- run: pip install pytest pytest-xdist ${{ matrix.test-dependencies }}
- if: matrix.test-extras != ''
run: pip install .[${{ matrix.test-extras }}]
working-directory: ${{ matrix.package }}
- if: matrix.package != 'hstcal'
run: pip install -e .
working-directory: ${{ matrix.package }}
- run: micromamba update -f stenv/environment.yaml
- run: pip list
- if: matrix.pre_command != ''
run: ${{ matrix.pre_command }}
Expand Down

0 comments on commit 7c2b666

Please sign in to comment.