Skip to content

Commit 2e4b674

Browse files
committed
CI: Pin numpy
1 parent 60432f9 commit 2e4b674

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

ci/azure/azure_template_posix.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,15 @@ jobs:
1919
python39_legacy:
2020
python.version: '3.9'
2121
PANDAS: 1.5.3
22+
NUMPY: 1.23.4
2223
python310_legacy:
23-
python.version: '3.9'
24+
python.version: '3.10'
2425
PANDAS: 2.0.3
26+
NUMPY: 1.24.4
2527
python311_latest:
2628
python.version: '3.11'
2729
PANDAS: 2.1.4
30+
NUMPY: 1.26.4
2831
python312_latest:
2932
python.version: '3.12'
3033
python313_latest:
@@ -40,6 +43,9 @@ jobs:
4043
python -m pip install pip setuptools -U
4144
python -m pip install -r requirements.txt
4245
python -m pip install -r requirements-dev.txt
46+
if [[ -n ${NUMPY} ]]; then
47+
python -m pip install numpy==${NUMPY}
48+
fi;
4349
if [[ -n ${PANDAS} ]]; then
4450
python -m pip install pandas==${PANDAS}
4551
fi;

ci/azure/azure_template_windows.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,14 @@ jobs:
1919
python39_legecy:
2020
python.version: '3.9'
2121
PANDAS: 1.5.3
22+
NUMPY: 1.23.4
2223
python310_recent:
2324
python.version: '3.10'
24-
PANDAS: 2.0.3
25+
NUMPY: 1.24.4
2526
python311_latest:
2627
python.version: '3.11'
2728
PANDAS: 2.1.4
29+
NUMPY: 1.26.4
2830
python312_latest:
2931
python.version: '3.12'
3032
python313_latest:
@@ -44,10 +46,13 @@ jobs:
4446
displayName: 'Install dependencies'
4547
4648
- powershell: |
49+
if ($null -ne $env:NUMPY) {
50+
python -m pip install numpy==${NUMPY}
51+
}
4752
if ($null -ne $env:PANDAS) {
4853
python -m pip install pandas==${PANDAS}
4954
}
50-
displayName: 'Update pandas (if needed)'
55+
displayName: 'Update numpy and pandas (if needed)'
5156
5257
- script: |
5358
python -m pip install -e . -vv

0 commit comments

Comments
 (0)