Skip to content
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
19 changes: 10 additions & 9 deletions .github/workflows/ci_tests_run_notebooks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,22 +16,23 @@ jobs:
name: ${{ matrix.os }} ${{ matrix.name }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
# Run all supported OS for one Python version, then add a few extra scenarios
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ['3.9']
toxenv: [py39-test]
name: ['with Python 3.9',]
python-version: ['3.10']
toxenv: [py310-test]
name: ['with Python 3.10',]

include:
- python-version: '3.8'
toxenv: py38-test-oldestdeps
name: with Python 3.8 and oldest versioned dependencies
- python-version: '3.9'
toxenv: py39-test-oldestdeps
name: with Python 3.9 and oldest versioned dependencies
os: ubuntu-latest

- python-version: '3.10'
toxenv: py310-test-devdeps
name: with Python 3.10 with developer versioned dependencies
- python-version: '3.11'
toxenv: py311-test-devdeps
name: with Python 3.11 and developer versioned dependencies
os: ubuntu-latest

steps:
Expand Down
5 changes: 3 additions & 2 deletions environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ dependencies:
- numpy
- scipy
- matplotlib
- pandas
- pandas
- statsmodels
- imageio
# Temporary version limit, see https://github.com/numpy/numpy-tutorials/issues/179
- imageio<2.28
# For building the site
- sphinx<5
- myst-nb
Expand Down
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ scipy
matplotlib
pandas
statsmodels
imageio
# temporary version limit, see https://github.com/numpy/numpy-tutorials/issues/179
imageio<2.28
# For supporting .md-based notebooks
jupytext
13 changes: 8 additions & 5 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tox]
envlist =
py{38,39,310}-test{,-oldestdeps,-devdeps,-predeps}{,-buildhtml}
py{39,310,311}-test{,-oldestdeps,-devdeps,-predeps}{,-buildhtml}
requires =
pip >= 19.3.1

Expand All @@ -15,17 +15,20 @@ deps =
-rsite/requirements.txt
-rrequirements.txt

# TODO: add the oldest supported versions of all the dependencies here
# oldestdeps: numpy==1.18
# oldestdeps: matplotlib==3.1.2
# oldestdeps: scipy==1.4
oldestdeps: numpy==1.20
oldestdeps: matplotlib==3.4
oldestdeps: scipy==1.6
oldestdeps: pandas==1.2
oldestdeps: statsmodels==0.13

allowlist_externals = bash

commands =
devdeps: pip install -U --pre --only-binary :all: -i https://pypi.anaconda.org/scipy-wheels-nightly/simple numpy
devdeps: pip install -U --pre --only-binary :all: -i https://pypi.anaconda.org/scipy-wheels-nightly/simple scipy
devdeps: pip install -U --pre --only-binary :all: -i https://pypi.anaconda.org/scipy-wheels-nightly/simple matplotlib
devdeps: pip install -U --pre --only-binary :all: -i https://pypi.anaconda.org/scipy-wheels-nightly/simple pandas
devdeps: pip install -U --pre --only-binary :all: -i https://pypi.anaconda.org/scipy-wheels-nightly/simple statsmodels

pip freeze

Expand Down