mirror of
https://github.com/espressif/esp-protocols.git
synced 2025-11-25 19:59:32 +01:00
fix(sock_utils): Run target tests via py-venv
This commit is contained in:
14
.github/workflows/sockutls_build.yml
vendored
14
.github/workflows/sockutls_build.yml
vendored
@@ -87,6 +87,20 @@ jobs:
|
|||||||
- name: Run Test
|
- name: Run Test
|
||||||
working-directory: ${{ env.TEST_DIR }}
|
working-directory: ${{ env.TEST_DIR }}
|
||||||
run: |
|
run: |
|
||||||
|
export PYENV_ROOT="$HOME/.pyenv"
|
||||||
|
export PATH="$PYENV_ROOT/bin:$PATH"
|
||||||
|
eval "$(pyenv init --path)"
|
||||||
|
eval "$(pyenv init -)"
|
||||||
|
if ! pyenv versions --bare | grep -q '^3\.12\.6$'; then
|
||||||
|
echo "Installing Python 3.12.6..."
|
||||||
|
pyenv install -s 3.12.6
|
||||||
|
fi
|
||||||
|
if ! pyenv virtualenvs --bare | grep -q '^myenv$'; then
|
||||||
|
echo "Creating pyenv virtualenv 'myenv'..."
|
||||||
|
pyenv virtualenv 3.12.6 myenv
|
||||||
|
fi
|
||||||
|
pyenv activate myenv
|
||||||
|
python --version
|
||||||
unzip ci/artifacts.zip -d ci
|
unzip ci/artifacts.zip -d ci
|
||||||
for dir in `ls -d ci/build_*`; do
|
for dir in `ls -d ci/build_*`; do
|
||||||
rm -rf build sdkconfig.defaults
|
rm -rf build sdkconfig.defaults
|
||||||
|
|||||||
Reference in New Issue
Block a user