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

Formalize pip pre testing #578

Merged
merged 2 commits into from
Jan 4, 2024
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
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
| :------------------------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Latest Release** | [![PyPI version](https://badge.fury.io/py/linearmodels.svg)](https://badge.fury.io/py/linearmodels) |
| **Continuous Integration** | [![Build Status](https://dev.azure.com/kevinksheppard/kevinksheppard/_apis/build/status/bashtage.linearmodels?branchName=main)](https://dev.azure.com/kevinksheppard/kevinksheppard/_build/latest?definitionId=2&branchName=main) |
| | [![Build status](https://ci.appveyor.com/api/projects/status/7768doy6wrdunmdt/branch/main?svg=true)](https://ci.appveyor.com/project/bashtage/linearmodels/branch/main) |
| **Coverage** | [![codecov](https://codecov.io/gh/bashtage/linearmodels/branch/main/graph/badge.svg)](https://codecov.io/gh/bashtage/linearmodels) |
| **Code Quality** | [![Codacy Badge](https://api.codacy.com/project/badge/Grade/745a24a69cb2466b95df6a53c83892de)](https://www.codacy.com/manual/bashtage/linearmodels?utm_source=github.com&utm_medium=referral&utm_content=bashtage/linearmodels&utm_campaign=Badge_Grade) |
| | [![codebeat badge](https://codebeat.co/badges/aaae2fb4-72b5-4a66-97cd-77b93488f243)](https://codebeat.co/projects/github-com-bashtage-linearmodels-main) |
Expand Down Expand Up @@ -133,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

Expand Down
35 changes: 19 additions & 16 deletions ci/azure_template_posix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,44 +16,44 @@ 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:
python.version: '3.10'
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
Expand Down Expand Up @@ -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)'
Expand Down
6 changes: 3 additions & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -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
Expand Down