From 75161b545a7a127a5d486c0770c449fbbd52c3d4 Mon Sep 17 00:00:00 2001 From: pre-commit fix Vito Zanotelli Date: Fri, 19 Jan 2024 17:27:49 +0100 Subject: [PATCH] Add pyzmq installation for github action This is required for some tests. Following the instructions from issue #2050 Specifically: https://github.com/MiczFlor/RPi-Jukebox-RFID/issues/2050#issuecomment-1804785695 --- .github/workflows/pythonpackage_future3.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pythonpackage_future3.yml b/.github/workflows/pythonpackage_future3.yml index f2174d0c0..b9505181f 100644 --- a/.github/workflows/pythonpackage_future3.yml +++ b/.github/workflows/pythonpackage_future3.yml @@ -30,7 +30,7 @@ jobs: - name: Install dependencies run: | sudo apt-get update - sudo apt-get install -y libasound2-dev pulseaudio + sudo apt-get install -y libasound2-dev pulseaudio libzmq3-dev python3 -m pip install --upgrade pip pip3 install -r requirements.txt # For operation of the Jukebox, ZMQ must be compiled from sources due to Websocket support @@ -39,6 +39,8 @@ jobs: pip3 install -r src/jukebox/components/rfid/hardware/pn532_i2c_py532/requirements.txt pip3 install -r src/jukebox/components/rfid/hardware/rdm6300_serial/requirements.txt pip3 install -r src/jukebox/components/rfid/hardware/rc522_spi/requirements.txt + ZMQ_DRAFT_API=1 ZMQPREFIX="/usr/local" pip3 install --no-binary=:all: --break-system-packages pyzmq + - name: Run pytest with coverage run: | ./run_pytest.sh --cov --cov-report xml --cov-config=.coveragerc