File tree Expand file tree Collapse file tree 3 files changed +25
-0
lines changed Expand file tree Collapse file tree 3 files changed +25
-0
lines changed Original file line number Diff line number Diff line change 3939 description : Ignore pytest.skip
4040 type : boolean
4141 default : false
42+ use_system_python :
43+ description : Use system Python
44+ type : boolean
45+ default : false
4246
4347permissions : read-all
4448
6064 skip_list : ${{ inputs.skip_list }}
6165 run_name : ${{ inputs.run_name || format('Build and test {0}', inputs.runner_label) }}
6266 enable_unskip : ${{ inputs.enable_unskip }}
67+ use_system_python : ${{ inputs.use_system_python || false }}
Original file line number Diff line number Diff line change 5656 description : Runner label for version
5757 type : string
5858 default : runner-0.0.20
59+ use_system_python :
60+ description : Use system Python
61+ type : boolean
62+ default : false
5963
6064permissions : read-all
6165
@@ -91,10 +95,16 @@ jobs:
9195 key : pip-${{ inputs.python_version }}-${{ hashFiles('python/pyproject.toml', 'python/setup.py') }}-${{ env.CACHE_NUMBER }}
9296
9397 - name : Install Python ${{ inputs.python_version }}
98+ if : ${{ !inputs.use_system_python }}
9499 uses : actions/setup-python@v5
95100 with :
96101 python-version : ${{ inputs.python_version }}
97102
103+ - name : Identify Python version
104+ run : |
105+ PYTHON_VERSION="$(python -c 'import sys; print(f"{sys.version_info[0]}.{ sys.version_info[1]}")')"
106+ echo "PYTHON_VERSION=$PYTHON_VERSION" | tee -a $GITHUB_ENV
107+
98108 - name : Setup PyTorch
99109 uses : ./.github/actions/setup-pytorch
100110 with :
Original file line number Diff line number Diff line change 2828 description : JSON list of benchmarks to skip
2929 type : string
3030 default : " []"
31+ use_system_python :
32+ description : Use system Python
33+ type : boolean
34+ default : false
3135 schedule :
3236 - cron : " 5 23 * * *"
3337 pull_request :
@@ -67,10 +71,16 @@ jobs:
6771 key : pip-$PYTHON_VERSION-$GITHUB_SHA
6872
6973 - name : Install Python
74+ if : ${{ !(inputs.use_system_python || false) }}
7075 uses : actions/setup-python@v5
7176 with :
7277 python-version : ${{ env.PYTHON_VERSION }}
7378
79+ - name : Identify Python version
80+ run : |
81+ PYTHON_VERSION="$(python -c 'import sys; print(f"{sys.version_info[0]}.{ sys.version_info[1]}")')"
82+ echo "PYTHON_VERSION=$PYTHON_VERSION" | tee -a $GITHUB_ENV
83+
7484 - name : Install Python build dependencies
7585 run : |
7686 pip install wheel cmake
You can’t perform that action at this time.
0 commit comments