diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 023363d52dd96..d16b7a1e42fcd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -46,6 +46,8 @@ jobs: run: | sudo apt-get update sudo apt-get install -y ccache clang python-is-python3 + /usr/bin/python --version + /usr/bin/python3 --version - name: Enable cache uses: actions/cache/restore@v3 @@ -59,6 +61,11 @@ jobs: run: | export cache_dir="${{ env.CACHE_DIR }}" bash build_tools/ci/install_python_deps.sh ${{ matrix.torch-version }} + /usr/bin/python -m pip freeze | grep torch + /usr/bin/python3 -m pip freeze | grep torch + /usr/bin/python -c 'import torch' + echo $PYTHONPATH + - name: Build project run: | diff --git a/test/python/compile.py b/test/python/compile.py index 990738085020c..d1556e3daa6f2 100644 --- a/test/python/compile.py +++ b/test/python/compile.py @@ -1,7 +1,8 @@ -# RUN: %PYTHON -s %s 2>&1 | FileCheck %s +# RUN: %PYTHON %s 2>&1 | FileCheck %s import gc import sys +print(sys.path) import torch from torch_mlir import torchscript