This commit is contained in:
Ivan Pozdeev 2025-03-28 00:29:51 +03:00
parent 6e414a6b7d
commit 21f6f0c9c3

View File

@ -39,12 +39,14 @@ jobs:
run: | run: |
echo $PYENV_ROOT echo $PYENV_ROOT
echo "$PYENV_ROOT/shims:$PYENV_ROOT/bin" >> $GITHUB_PATH echo "$PYENV_ROOT/shims:$PYENV_ROOT/bin" >> $GITHUB_PATH
bin/pyenv --debug install ${{ matrix.python-version }} echo "$PATH"
bin/pyenv global ${{ matrix.python-version }} # bin/pyenv --debug install ${{ matrix.python-version }}
bin/pyenv rehash # bin/pyenv global ${{ matrix.python-version }}
- run: python --version # bin/pyenv rehash
- run: python -m pip --version # - run: python --version
- shell: python # Prove that actual Python == expected Python - run: echo "$PATH"
env: # - run: python -m pip --version
EXPECTED_PYTHON: ${{ matrix.python-version }} # - shell: python # Prove that actual Python == expected Python
run: import os, sys ; assert sys.version.startswith(os.getenv("EXPECTED_PYTHON")) # env:
# EXPECTED_PYTHON: ${{ matrix.python-version }}
# run: import os, sys ; assert sys.version.startswith(os.getenv("EXPECTED_PYTHON"))