Skip to content

Commit 8d1f015

Browse files
committed
github-actions: Constraint broken transitive dependencies
Add onnxruntime-1.14.0 on macos to the constraint. microsoft/onnxruntime#14663 Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
1 parent bc85b0a commit 8d1f015

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.github/actions/install-pnl/action.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ runs:
7070
echo "new_package=$NEW_PACKAGE" >> $GITHUB_OUTPUT
7171
# save a list of all installed packages (including pip, wheel; it's never empty)
7272
pip freeze --all > orig
73-
pip install "$(echo $NEW_PACKAGE | sed 's/[-_]/./g' | xargs grep *requirements.txt -h -e | head -n1)" -c env_constraints.txt
73+
pip install "$(echo $NEW_PACKAGE | sed 's/[-_]/./g' | xargs grep *requirements.txt -h -e | head -n1)" -c env_constraints.txt -c broken_trans_deps.txt
7474
pip show "$NEW_PACKAGE" | grep 'Version' | tee new_version.deps
7575
# uninstall new packages but skip those from previous steps (pywinpty, terminado on windows x86)
7676
# the 'orig' list is not empty (includes at least pip, wheel)
@@ -82,7 +82,7 @@ runs:
8282
- name: Python dependencies
8383
shell: bash
8484
run: |
85-
pip install -e .[${{ inputs.features }}] -c env_constraints.txt
85+
pip install -e .[${{ inputs.features }}] -c env_constraints.txt -c broken_trans_deps.txt
8686
8787
- name: "Cleanup old wheels"
8888
shell: bash

broken_trans_deps.txt

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# This file constraints broken (transitive) dependencies
2+
3+
# onnxruntime-1.14.0 is broken on macos/x64
4+
# https://github.com/microsoft/onnxruntime/issues/14663
5+
onnxruntime != 1.14.0; platform_system=macos

0 commit comments

Comments
 (0)