Skip to content

Commit a08b64e

Browse files
BordaCopilot
andauthored
ci: pin also test requirements for minimal setup (#21102)
* ci: pin also test requirements for minimal setup * onnx >1.12.0 * numpy >1.20.0 * onnxscript >= 0.1.0 * tensorboard >=2.11 * tensorboardX >=2.6 --------- Co-authored-by: Copilot <[email protected]>
1 parent 2460746 commit a08b64e

File tree

5 files changed

+14
-11
lines changed

5 files changed

+14
-11
lines changed

.github/workflows/ci-tests-fabric.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ jobs:
9696
run: |
9797
cd requirements/fabric
9898
pip install -U "lightning-utilities[cli]"
99-
python -m lightning_utilities.cli requirements set-oldest --req_files "['base.txt', 'strategies.txt']"
99+
python -m lightning_utilities.cli requirements set-oldest --req_files "['base.txt', 'strategies.txt', 'test.txt']"
100100
pip install "cython<3.0" wheel
101101
pip install "pyyaml==5.4" --no-build-isolation
102102
@@ -142,7 +142,8 @@ jobs:
142142
run: |
143143
pip install -e ".[${EXTRA_PREFIX}test,${EXTRA_PREFIX}strategies]" \
144144
-U --upgrade-strategy=eager --prefer-binary \
145-
--extra-index-url="${TORCH_URL}" --find-links="${PYPI_CACHE_DIR}"
145+
--extra-index-url="${TORCH_URL}" \
146+
--find-links="${PYPI_CACHE_DIR}"
146147
pip list
147148
- name: Dump handy wheels
148149
if: github.event_name == 'push' && github.ref == 'refs/heads/master'

.github/workflows/ci-tests-pytorch.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ jobs:
101101
run: |
102102
cd requirements/pytorch
103103
pip install -U "lightning-utilities[cli]"
104-
python -m lightning_utilities.cli requirements set-oldest --req_files "['base.txt', 'extra.txt', 'strategies.txt', 'examples.txt']"
104+
python -m lightning_utilities.cli requirements set-oldest --req_files "['base.txt', 'extra.txt', 'strategies.txt', 'examples.txt', 'test.txt']"
105105
pip install "cython<3.0" wheel
106106
pip install "pyyaml==5.4" --no-build-isolation
107107
@@ -141,7 +141,9 @@ jobs:
141141
pip install ".[${EXTRA_PREFIX}extra,${EXTRA_PREFIX}test,${EXTRA_PREFIX}strategies]" \
142142
-U --upgrade-strategy=eager --prefer-binary \
143143
-r requirements/_integrations/accelerators.txt \
144-
--extra-index-url="${TORCH_URL}" --find-links="${PYPI_CACHE_DIR}" --find-links="https://download.pytorch.org/whl/torch-tensorrt"
144+
--extra-index-url="${TORCH_URL}" \
145+
--find-links="${PYPI_CACHE_DIR}" \
146+
--find-links="https://download.pytorch.org/whl/torch-tensorrt"
145147
pip list
146148
- name: Drop LAI from extensions
147149
if: ${{ matrix.pkg-name != 'lightning' }}

requirements/fabric/test.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
coverage ==7.10.4
2-
numpy >=1.17.2, <1.27.0
2+
numpy >=1.21.0, <1.27.0
33
pytest ==8.4.1
44
pytest-cov ==6.2.1
55
pytest-timeout ==2.4.0
66
pytest-rerunfailures ==15.1
77
pytest-random-order ==1.2.0
88
click ==8.1.8; python_version < "3.11"
99
click ==8.2.1; python_version > "3.10"
10-
tensorboardX >=2.2, <2.7.0 # min version is set by torch.onnx missing attribute
10+
tensorboardX >=2.6, <2.7.0 # todo: relax it back to `>=2.2` after fixing tests

requirements/pytorch/loggers.info

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ neptune >=1.0.0
44
comet-ml >=3.31.0
55
mlflow >=1.0.0
66
wandb >=0.12.10
7-
tensorboard >=2.9.1
7+
tensorboard >=2.11

requirements/pytorch/test.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,16 @@ pytest-random-order ==1.2.0
88
# needed in tests
99
cloudpickle >=1.3, <3.2.0
1010
scikit-learn >0.22.1, <1.8.0
11-
numpy >=1.17.2, <1.27.0
12-
onnx >=1.12.0, <1.19.0
11+
numpy >1.20.0, <1.27.0
12+
onnx >1.12.0, <1.19.0
1313
onnxruntime >=1.12.0, <1.23.0
14-
onnxscript >= 0.2.2, <0.4.0
14+
onnxscript >= 0.1.0, <0.4.0
1515
psutil <7.0.1 # for `DeviceStatsMonitor`
1616
pandas >2.0, <2.4.0 # needed in benchmarks
1717
fastapi # for `ServableModuleValidator` # not setting version as re-defined in App
1818
uvicorn # for `ServableModuleValidator` # not setting version as re-defined in App
1919

20-
tensorboard >=2.9.1, <2.21.0 # for `TensorBoardLogger`
20+
tensorboard >=2.11, <2.21.0 # for `TensorBoardLogger`
2121

2222
--find-links https://download.pytorch.org/whl/torch-tensorrt
2323
torch-tensorrt; platform_system == "Linux" and python_version >= "3.12"

0 commit comments

Comments
 (0)