Skip to content

Commit 020ba01

Browse files
committed
fix(ci): Run mosquitto tests on py-venv3.12
1 parent 65b58aa commit 020ba01

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.github/workflows/mosq__build.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)