File tree Expand file tree Collapse file tree 1 file changed +15
-9
lines changed
Expand file tree Collapse file tree 1 file changed +15
-9
lines changed Original file line number Diff line number Diff line change @@ -81,18 +81,24 @@ jobs:
8181 with :
8282 name : examples_app_bin_${{ matrix.idf_target }}_${{ matrix.idf_ver }}_${{ matrix.example }}
8383 path : ${{ env.TEST_DIR }}/${{ matrix.example }}/build
84- - name : Install Python packages
85- env :
86- PIP_EXTRA_INDEX_URL : " https://www.piwheels.org/simple"
87- run : |
88- sudo apt-get install -y dnsutils
89- - name : Download Example Test to target ${{ matrix.config }}
90- run : |
91- python -m esptool --chip ${{ matrix.idf_target }} write_flash 0x0 ${{ env.TEST_DIR }}/${{ matrix.example }}/build/flash_image.bin
9284 - name : Run Example Test ${{ matrix.example }} on target
9385 working-directory : ${{ env.TEST_DIR }}/${{ matrix.example }}
9486 run : |
95- python -m pytest --log-cli-level DEBUG --junit-xml=./examples_results_${{ matrix.idf_target }}_${{ matrix.idf_ver }}_${{ matrix.config }}.xml --target=${{ matrix.idf_target }}
87+ export PYENV_ROOT="$HOME/.pyenv"
88+ export PATH="$PYENV_ROOT/bin:$PATH"
89+ eval "$(pyenv init --path)"
90+ eval "$(pyenv init -)"
91+ if ! pyenv versions --bare | grep -q '^3\.12\.6$'; then
92+ echo "Installing Python 3.12.6..."
93+ pyenv install -s 3.12.6
94+ fi
95+ if ! pyenv virtualenvs --bare | grep -q '^myenv$'; then
96+ echo "Creating pyenv virtualenv 'myenv'..."
97+ pyenv virtualenv 3.12.6 myenv
98+ fi
99+ pyenv activate myenv
100+ python --version
101+ python -m pytest --log-cli-level DEBUG --junit-xml=./examples_results_${{ matrix.idf_target }}_${{ matrix.idf_ver }}_${{ matrix.config }}.xml --target=${{ matrix.idf_target }}
96102 - uses : actions/upload-artifact@v4
97103 if : always()
98104 with :
You can’t perform that action at this time.
0 commit comments