Skip to content

Commit

Permalink
Use virtualenv for CI
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianSipos committed Nov 8, 2024
1 parent 0abff76 commit f38b681
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/demo-agent.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
pip3 install -e .
Expand All @@ -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

0 comments on commit f38b681

Please sign in to comment.