diff --git a/.github/workflows/demo-agent.yml b/.github/workflows/demo-agent.yml index a06391b..6c12417 100644 --- a/.github/workflows/demo-agent.yml +++ b/.github/workflows/demo-agent.yml @@ -19,8 +19,9 @@ jobs: python-version: ${{ matrix.python-version }} - name: Install run: | - sudo apt-get update && sudo apt-get install build-essential dbus libdbus-glib-1-dev libgirepository1.0-dev python3-pip python3-wheel - python -m pip install --upgrade pip + sudo apt-get update && sudo apt-get install build-essential dbus libdbus-glib-1-dev libgirepository1.0-dev + python3 -m venv build/venv + source ./build/venv/bin/activate # custom cose repo pip3 install git+https://github.com/TimothyClaeys/pycose.git@v1.0.1 pip3 install -e . @@ -33,9 +34,14 @@ jobs: flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics - name: Test with pytest run: | + source ./build/venv/bin/activate pip3 install -e '.[test]' dbus-run-session -- python3 -m pytest -v --cov=scapy_cbor --cov=bp --cov=udpcl --cov=tcpcl src - name: Transfer udpcl - run: dbus-run-session -- python3 -m udpcl.test.bundlegen --log=debug fullvalid + run: | + source ./build/venv/bin/activate + dbus-run-session -- python3 -m udpcl.test.bundlegen --log=debug fullvalid - name: Transfer tcpcl - run: dbus-run-session -- python3 -m tcpcl.test.bundlegen --log=debug fullvalid + run: | + source ./build/venv/bin/activate + dbus-run-session -- python3 -m tcpcl.test.bundlegen --log=debug fullvalid