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
49 changes: 49 additions & 0 deletions .github/workflows/test_minimum_versions.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Minimum version tests

on:
push:
branches:
- main
- 'stable/**'
pull_request:
branches:
- main
- 'stable/**'

jobs:
tests:
name: minimum version tests (${{ matrix.os }}, ${{ matrix.python-version }})
runs-on: ${{ matrix.os }}
timeout-minutes: 30
strategy:
fail-fast: false
max-parallel: 4
matrix:
os: [ubuntu-latest]
python-version: ["3.10"]
steps:
- uses: actions/checkout@v7
with:
# The reference energies the tests check against come from data in the
# vendored upstream checkout, and setup.py needs its headers to compile.
submodules: recursive
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v7
with:
python-version: ${{ matrix.python-version }}
- name: Install MPI and BLAS (Linux)
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install -y libopenmpi-dev openmpi-bin libopenblas-dev
- name: Install dependencies (minimum versions)
shell: bash
run: |
python -m pip install --upgrade pip
python -m pip install 'extremal-python-dependencies<2'
pip install "tox==$(extremal-python-dependencies get-tox-minversion)"
extremal-python-dependencies pin-dependencies-to-minimum --inplace
- name: Test using tox environments
shell: bash
run: |
tox -e py,notebook,mpi
8 changes: 4 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[build-system]
requires = ["setuptools>=77", "wheel", "pybind11>=2.6.0", "mpi4py>=3.0.0"]
requires = ["setuptools>=77.0.1", "wheel", "pybind11>=2.12.0", "mpi4py>=4.0.0"]
build-backend = "setuptools.build_meta"

[project]
Expand Down Expand Up @@ -27,8 +27,8 @@ classifiers = [
"Programming Language :: C++",
]
dependencies = [
"mpi4py>=3.0.0",
"numpy>=1.19.0",
"mpi4py>=4.0.0",
"numpy>=1.26.0",
]

[project.optional-dependencies]
Expand Down Expand Up @@ -83,4 +83,4 @@ testpaths = ["test"]
# skips by default: a bare count of skips would not distinguish "this case is slow" or
# "this backend was not built" from "the reference data is missing". --durations shows
# where the time goes, the cases differing by orders of magnitude in cost.
addopts = "-rs --durations=10"
addopts = "-rs --durations=10"
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
upgrade:
- |
The declared minimum versions of several dependencies have been raised to
the oldest ones this package actually builds and runs against:
``numpy>=1.26.0`` (was 1.19.0), ``mpi4py>=4.0.0`` (was 3.0.0),
``pybind11>=2.12.0`` (was 2.6.0), and ``setuptools>=77.0.1`` (was 77).
The previous floors were aspirational rather than tested.
Loading