File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -83,10 +83,16 @@ jobs:
83
83
repository : ${{ inputs.sage_repo }}
84
84
ref : ${{ inputs.sage_ref }}
85
85
fetch-depth : 10000
86
-
86
+ - uses : actions/setup-python@v5
87
+ # As of 2024-02-03, the macOS M1 runners do not have preinstalled python or pipx.
88
+ # Installing pipx follows the approach of https://github.com/pypa/cibuildwheel/pull/1743
89
+ id : python
90
+ with :
91
+ python-version : " 3.8 - 3.12"
92
+ update-environment : false
87
93
- name : Install test prerequisites
88
94
run : |
89
- pipx install tox
95
+ "${{ steps.python.outputs.python-path }}" -m pip install pipx
90
96
- name : Download upstream artifact
91
97
uses : actions/download-artifact@v3
92
98
with :
@@ -139,7 +145,7 @@ jobs:
139
145
;;
140
146
esac
141
147
(sleep ${{ inputs.timeout }}; pkill make) &
142
- MAKE="make -j12" tox -e $TOX_ENV -- SAGE_NUM_THREADS=6 $TARGETS
148
+ MAKE="make -j12" "${{ steps.python.outputs.python-path }}" -m pipx run tox -e $TOX_ENV -- SAGE_NUM_THREADS=6 $TARGETS
143
149
- name : Prepare logs artifact
144
150
run : |
145
151
mkdir -p "artifacts/$LOGS_ARTIFACT_NAME"; cp -r .tox/*/log "artifacts/$LOGS_ARTIFACT_NAME"
You can’t perform that action at this time.
0 commit comments