Skip to content

Commit

Permalink
Update devdeps tests to use more recent python, numpy (#1086)
Browse files Browse the repository at this point in the history
* Change devdeps test to python 3.12, force install dev numpy despite matplotlib

* Also update OS tests to use 3.11

* 3.10 has to be a string...
  • Loading branch information
rosteen committed Sep 27, 2023
1 parent 1967512 commit 27db220
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 16 deletions.
40 changes: 25 additions & 15 deletions .github/workflows/ci_workflows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,27 +25,37 @@ jobs:
python: 3.x
toxenv: codestyle

- name: Python 3.10 with astropy data and coverage
- name: Python 3.11 with astropy data and coverage
os: ubuntu-latest
python: '3.10'
toxenv: py310-test-cov
python: '3.11'
toxenv: py311-test-cov
toxargs: -v
toxposargs: --remote-data=astropy

- name: Python 3.8 with oldest supported version of key dependencies
os: ubuntu-20.04
python: 3.8
toxenv: py38-test-oldestdeps

- name: Python 3.9 (Windows)
- name: Python 3.11 (Windows)
os: windows-latest
python: 3.11
toxenv: py311-test

- name: Python 3.11 (MacOS X)
os: macos-latest
python: 3.11
toxenv: py311-test

- name: Python 3.10
os: ubuntu-latest
python: '3.10'
toxenv: py310-test

- name: Python 3.9
os: ubuntu-latest
python: 3.9
toxenv: py39-test

- name: Python 3.8 (MacOS X)
os: macos-latest
- name: Python 3.8 with oldest supported version of key dependencies
os: ubuntu-20.04
python: 3.8
toxenv: py38-test
toxenv: py38-test-oldestdeps

steps:
- name: Checkout code
Expand Down Expand Up @@ -79,10 +89,10 @@ jobs:
fail-fast: false
matrix:
include:
- name: (Allowed Failure) Python 3.11 with remote data and dev version of key dependencies
- name: (Allowed Failure) Python 3.12 with remote data and dev version of key dependencies
os: ubuntu-latest
python: '3.11'
toxenv: py311-test-devdeps
python: '3.12-dev'
toxenv: py312-test-devdeps
toxposargs: --remote-data=any

steps:
Expand Down
4 changes: 3 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tox]
envlist =
py{38,39,310,311}-test{,-devdeps,-oldestdeps,-predeps}{,-cov,-external}
py{38,39,310,311,312}-test{,-devdeps,-oldestdeps,-predeps}{,-cov,-external}
linkcheck
codestyle
requires =
Expand Down Expand Up @@ -66,6 +66,8 @@ extras =
!oldestdeps: jwst

commands =
# Force numpy-dev after matplotlib downgrades it (https://github.com/matplotlib/matplotlib/issues/26847)
devdeps: python -m pip install --pre --upgrade --extra-index-url https://pypi.anaconda.org/scientific-python-nightly-wheels/simple numpy
pip freeze
!cov: pytest --pyargs specutils {toxinidir}/docs {posargs}
cov: pytest --pyargs specutils {toxinidir}/docs --cov specutils --cov-config={toxinidir}/setup.cfg {posargs}
Expand Down

0 comments on commit 27db220

Please sign in to comment.