Skip to content

Commit d622e41

Browse files
authored
Merge pull request espressif#915 from david-cermak/fix/target_tests
[websockets]: Fix target tests
2 parents 91915ce + ca6e39a commit d622e41

File tree

3 files changed

+20
-5
lines changed

3 files changed

+20
-5
lines changed

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

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,14 +65,27 @@ jobs:
6565
with:
6666
name: websocket_bin_esp32_${{ matrix.idf_ver }}_${{ matrix.test.app }}
6767
path: ${{ env.TEST_DIR }}/ci/
68-
- name: Install Python packages
69-
env:
70-
PIP_EXTRA_INDEX_URL: "https://www.piwheels.org/simple"
71-
run: |
72-
pip install --only-binary cryptography --extra-index-url https://dl.espressif.com/pypi/ -r $GITHUB_WORKSPACE/ci/requirements.txt
7368
- name: Run Example Test on target
7469
working-directory: ${{ env.TEST_DIR }}
70+
env:
71+
PIP_EXTRA_INDEX_URL: "https://www.piwheels.org/simple"
7572
run: |
73+
export PYENV_ROOT="$HOME/.pyenv"
74+
export PATH="$PYENV_ROOT/bin:$PATH"
75+
eval "$(pyenv init --path)"
76+
eval "$(pyenv init -)"
77+
if ! pyenv versions --bare | grep -q '^3\.12\.6$'; then
78+
echo "Installing Python 3.12.6..."
79+
pyenv install -s 3.12.6
80+
fi
81+
if ! pyenv virtualenvs --bare | grep -q '^myenv$'; then
82+
echo "Creating pyenv virtualenv 'myenv'..."
83+
pyenv virtualenv 3.12.6 myenv
84+
fi
85+
pyenv activate myenv
86+
python --version
87+
pip install --prefer-binary cryptography pytest-embedded pytest-embedded-serial-esp pytest-embedded-idf pytest-custom_exit_code esptool
88+
pip install --extra-index-url https://dl.espressif.com/pypi/ -r $GITHUB_WORKSPACE/ci/requirements.txt
7689
unzip ci/artifacts.zip -d ci
7790
for dir in `ls -d ci/build_*`; do
7891
rm -rf build sdkconfig.defaults

ci/ignore_build_warnings.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ Warning: Deprecated: Option '--flash_mode' is deprecated. Use '--flash-mode' ins
44
Warning: Deprecated: Option '--flash_freq' is deprecated. Use '--flash-freq' instead.
55
Warning: Deprecated: Command 'sign_data' is deprecated. Use 'sign-data' instead.
66
Warning: Deprecated: Command 'extract_public_key' is deprecated. Use 'extract-public-key' instead.
7+
warning: unknown kconfig symbol 'EXAMPLE_ETH_PHY_IP101'

ci/requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ dpkt
66
pytest
77
idf_build_apps
88
netifaces
9+
esptool>=5.1.0

0 commit comments

Comments
 (0)