Skip to content

Commit 84a67b6

Browse files
committed
fix(common): Fix pyenv install in test runner
1 parent 7c81274 commit 84a67b6

File tree

1 file changed

+4
-13
lines changed

1 file changed

+4
-13
lines changed

.github/workflows/mdns__build-target-test.yml

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -73,22 +73,13 @@ jobs:
7373
PIP_EXTRA_INDEX_URL: "https://www.piwheels.org/simple"
7474
run: |
7575
sudo apt-get install -y dnsutils
76+
- name: Set up Python
77+
uses: actions/setup-python@v5
78+
with:
79+
python-version: "3.12.6"
7680
- name: Run ${{ matrix.test.app }} application on ${{ matrix.idf_target }}
7781
working-directory: components/mdns/${{ matrix.test.path }}
7882
run: |
79-
export PYENV_ROOT="$HOME/.pyenv"
80-
export PATH="$PYENV_ROOT/bin:$PATH"
81-
eval "$(pyenv init --path)"
82-
eval "$(pyenv init -)"
83-
if ! pyenv versions --bare | grep -q '^3\.12\.6$'; then
84-
echo "Installing Python 3.12.6..."
85-
pyenv install -s 3.12.6
86-
fi
87-
if ! pyenv virtualenvs --bare | grep -q '^myenv$'; then
88-
echo "Creating pyenv virtualenv 'myenv'..."
89-
pyenv virtualenv 3.12.6 myenv
90-
fi
91-
pyenv activate myenv
9283
python --version
9384
pip install --prefer-binary cryptography pytest-embedded pytest-embedded-serial-esp pytest-embedded-idf pytest-custom_exit_code esptool
9485
pip install --extra-index-url https://dl.espressif.com/pypi/ -r $GITHUB_WORKSPACE/ci/requirements.txt

0 commit comments

Comments
 (0)