only setup python for non-docker platforms (#2171)

Original PR was accidentally merged to a branch. Re-landing same PR to main now
pull/2172/head
powderluv 2023-05-25 16:27:06 -07:00 committed by GitHub
parent dff3405d5a
commit 0cdc03d8fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -19,16 +19,19 @@ runs:
steps: steps:
- name: Set up Python - name: Set up Python
if: ${{ runner.arch == 'X64' }}
uses: actions/setup-python@v4 uses: actions/setup-python@v4
with: with:
python-version: '3.11' python-version: '3.11'
- name: Install MLIR Python depends - name: Install MLIR Python depends
if: ${{ runner.os != 'Linux' }}
run: | run: |
python -m pip install -r $GITHUB_WORKSPACE/externals/llvm-project/mlir/python/requirements.txt python -m pip install -r $GITHUB_WORKSPACE/externals/llvm-project/mlir/python/requirements.txt
shell: bash shell: bash
- name: Install PyTorch nightly depends - name: Install PyTorch nightly depends
if: ${{ runner.os != 'Linux' }}
run: | run: |
python -m pip install -r pytorch-requirements.txt python -m pip install -r pytorch-requirements.txt
python -m pip install -r build-requirements.txt python -m pip install -r build-requirements.txt