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

Update devdeps tests to use more recent python, numpy #1086

Merged
merged 4 commits into from
Sep 27, 2023
Merged
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
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