Skip to content

Commit

Permalink
update mmirs test to reflect config change; bump min python to 3.10 t…
Browse files Browse the repository at this point in the history
…o reflect astropy; bump tests to cover 3.10-12; have CI default to 3.12
  • Loading branch information
tepickering committed Mar 21, 2024
1 parent 94ac888 commit 51521a9
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 16 deletions.
19 changes: 10 additions & 9 deletions .github/workflows/mmtwfs-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,18 @@ jobs:
envs: |
- linux: codestyle
pytest: false
- linux: py39-alldeps-cov
name: py39
- macos: py39
name: py39-macos
- linux: py38-astropylts
name: py38-astropyLTS
- linux: py312-alldeps-cov
name: py312
- macos: py312
name: py312-macos
- linux: py312-astropydev
name: py312-astropy-latest
continue-on-error: true
- linux: py312-numpydev
name: py312-numpy-latest
continue-on-error: true
- linux: build_docs
- linux: linkcheck
# - linux: py310-astropydev-numpydev
# name: py310-dev
# continue-on-error: true
coverage: 'codecov'
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV }}
2 changes: 1 addition & 1 deletion mmtwfs/tests/test_wfs.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def test_mmirs_analysis():
results = mmirs.measure_slopes(test_file)
zresults = mmirs.fit_wavefront(results)
testval = int(zresults['zernike']['Z10'].value)
assert (testval > 335) & (testval < 345)
assert (testval > 416) & (testval < 436)
plt.close('all')


Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ github_project = MMTObservatory/mmtwfs
[options]
zip_safe = False
packages = find:
python_requires = >=3.8
python_requires = >=3.10
setup_requires = setuptools_scm
install_requires =
astropy
Expand Down
7 changes: 2 additions & 5 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
[tox]
envlist =
py{39,310,311}{,-alldeps}{,-cov}
py{39,310,311}-astropylts
py{39,310,311}-{numpy,astropy}dev
py{310,311,312}{,-alldeps}{,-cov}
py{310,311,312}-{numpy,astropy}dev
build_docs
linkcheck
codestyle
Expand Down Expand Up @@ -34,12 +33,10 @@ description =
run tests
cov: with coverage enabled
alldeps: with all optional dependencies
astropylts: with astropy LTS
{numpy,astropy}dev: with latest master from github repo
cov_report: generate HTML coverage report

deps =
astropylts: astropy==5.0.*
numpydev: git+https://github.com/numpy/numpy.git#egg=numpy
astropydev: git+https://github.com/astropy/astropy.git#egg=astropy

Expand Down

0 comments on commit 51521a9

Please sign in to comment.