File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -180,6 +180,20 @@ jobs:
180180 - name : Run Test
181181 working-directory : ${{ env.TEST_DIR }}
182182 run : |
183+ export PYENV_ROOT="$HOME/.pyenv"
184+ export PATH="$PYENV_ROOT/bin:$PATH"
185+ eval "$(pyenv init --path)"
186+ eval "$(pyenv init -)"
187+ if ! pyenv versions --bare | grep -q '^3\.12\.6$'; then
188+ echo "Installing Python 3.12.6..."
189+ pyenv install -s 3.12.6
190+ fi
191+ if ! pyenv virtualenvs --bare | grep -q '^myenv$'; then
192+ echo "Creating pyenv virtualenv 'myenv'..."
193+ pyenv virtualenv 3.12.6 myenv
194+ fi
195+ pyenv activate myenv
196+ python --version
183197 python -m pip install pytest-embedded-serial-esp pytest-embedded-idf pytest-rerunfailures pytest-timeout pytest-ignore-test-results "paho-mqtt<2" --upgrade
184198 unzip ci/artifacts.zip -d ci
185199 for dir in `ls -d ci/build_*`; do
You can’t perform that action at this time.
0 commit comments