From 9ae6cda22ed7251798e29e06a82a8d25d400e7fb Mon Sep 17 00:00:00 2001 From: Kevin Sheppard Date: Thu, 4 Jan 2024 18:03:45 +0000 Subject: [PATCH] CI: Make CI compliant with new minimums --- README.md | 8 +++++--- ci/azure_template_posix.yml | 35 +++++++++++++++++++---------------- requirements.txt | 6 +++--- 3 files changed, 27 insertions(+), 22 deletions(-) diff --git a/README.md b/README.md index 5ed627b30e..3aedf4249a 100644 --- a/README.md +++ b/README.md @@ -132,12 +132,14 @@ regression. Currently only the single variable IV estimators are polished. ### Running - Python 3.9+ -- NumPy (1.19+) +- NumPy (1.22+) - SciPy (1.5+) -- pandas (1.1+) +- pandas (1.3+) - statsmodels (0.12+) +- formulaic (0.6.5+) - xarray (0.16+, optional) -- Cython (0.29.34+, optional) +- Cython (0.29.37+, optional) + ### Testing diff --git a/ci/azure_template_posix.yml b/ci/azure_template_posix.yml index 060439c941..a1b5d26378 100644 --- a/ci/azure_template_posix.yml +++ b/ci/azure_template_posix.yml @@ -16,32 +16,32 @@ jobs: vmImage: ${{ parameters.vmImage }} strategy: matrix: - python39_legacy: + python39_minimums: python.version: '3.9' - NUMPY: 1.19.0 + NUMPY: 1.22.0 SCIPY: 1.5.0 - PANDAS: 1.1.0 + PANDAS: 1.3.0 STATSMODELS: 0.12.0 - XARRAY: 0.16.0 + XARRAY: 0.21.0 FORMULAIC: 0.6.5 test.install: true python39_mid: python.version: '3.9' - NUMPY: 1.20.0 + NUMPY: 1.23.0 SCIPY: 1.6.0 - PANDAS: 1.2.0 - STATSMODELS: 0.12.0 - XARRAY: 0.18.0 + PANDAS: 1.4.0 + STATSMODELS: 0.13.0 + XARRAY: 2022.6.0 XXHASH: true FORMULAIC: 0.6.5 test.install: true python39_recent: python.version: '3.9' - NUMPY: 1.21.0 + NUMPY: 1.24.0 SCIPY: 1.7.0 - PANDAS: 1.3.0 + PANDAS: 1.5.0 STATSMODELS: 0.13.0 - XARRAY: 0.20.0 + XARRAY: 2022.12.0 FORMULAIC: 0.6.5 test.install: true python310_no_cython: @@ -49,11 +49,11 @@ jobs: LM_NO_BINARY: 1 python310_recent: python.version: '3.10' - NUMPY: 1.22.0 - SCIPY: 1.8.0 - PANDAS: 1.5.0 - STATSMODELS: 0.13.0 - XARRAY: 22.0 + NUMPY: 1.24.0 + SCIPY: 1.9.0 + PANDAS: 2.0.0 + STATSMODELS: 0.14.0 + XARRAY: 2023.4.0 python310_latest: python.version: '3.10' FORMULAIC: 1.0.1 @@ -134,6 +134,9 @@ jobs: - script: | echo "Testing pip-pre" + if [[ ${COVERAGE} == "true" ]]; then + export COVERAGE_OPTS="--cov-config .coveragerc --cov=linearmodels --cov-report xml:coverage.xml --cov-report term" + fi echo pytest -m "${PYTEST_PATTERN}" --junitxml=junit/test-results.xml -n auto --durations=25 ${COVERAGE_OPTS} linearmodels/tests pytest -m "${PYTEST_PATTERN}" --junitxml=junit/test-results.xml -n auto --durations=25 ${COVERAGE_OPTS} linearmodels/tests displayName: 'Run tests (pip pre)' diff --git a/requirements.txt b/requirements.txt index a23249631c..880fdf49ab 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,9 +1,9 @@ -numpy>=1.19.0 -pandas>=1.1.0 +numpy>=1.22.0 +pandas>=1.3.0 scipy>=1.5.0 statsmodels>=0.12.0 mypy_extensions>=0.4 -Cython>=0.29.34 +Cython>=0.29.37 pyhdfe>=0.1 formulaic>=0.6.5 # versioning