Skip to content

Commit bf6c97d

Browse files
committed
Fix deps install
1 parent 342fe76 commit bf6c97d

File tree

1 file changed

+36
-28
lines changed

1 file changed

+36
-28
lines changed

.github/workflows/demo-agent.yml

Lines changed: 36 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -11,40 +11,48 @@ jobs:
1111
python-version: ["3.8", "3.10"]
1212

1313
steps:
14-
- uses: actions/checkout@v4
15-
- name: Set up Python ${{ matrix.python-version }}
16-
uses: actions/setup-python@v4
17-
with:
18-
python-version: ${{ matrix.python-version }}
19-
- name: Install
20-
run: |
21-
sudo apt-get update && sudo apt-get install build-essential dbus libdbus-glib-1-dev libgirepository1.0-dev python3-pip python3-wheel
22-
python -m pip install --upgrade pip
23-
# custom cose repo
24-
pip3 install git+https://github.com/TimothyClaeys/pycose.git@v1.0.1
25-
pip3 install -e .
26-
- name: Lint with flake8
27-
run: |
28-
pip3 install flake8
29-
# stop the build if there are Python syntax errors or undefined names
30-
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
31-
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
32-
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
33-
- name: Test with pytest
34-
run: |
35-
pip3 install -e '.[test]'
36-
dbus-run-session -- python3 -m pytest -v --cov=scapy_cbor --cov=bp --cov=udpcl --cov=tcpcl src
37-
- name: Transfer udpcl
38-
run: dbus-run-session -- python3 -m udpcl.test.bundlegen --log=debug fullvalid
39-
- name: Transfer tcpcl
40-
run: dbus-run-session -- python3 -m tcpcl.test.bundlegen --log=debug fullvalid
14+
- uses: actions/checkout@v4
15+
- name: Set up Python ${{ matrix.python-version }}
16+
uses: actions/setup-python@v4
17+
with:
18+
python-version: ${{ matrix.python-version }}
19+
- name: Dependencies
20+
run: |
21+
sudo apt-get update && sudo apt-get install -y \
22+
build-essential dbus libdbus-glib-1-dev libgirepository1.0-dev \
23+
python3-pip python3-wheel
24+
python -m pip install --upgrade pip
25+
# custom cose repo
26+
pip3 install git+https://github.com/TimothyClaeys/pycose.git@v1.0.1
27+
- name: Install
28+
run: pip3 install -e .
29+
- name: Lint with flake8
30+
run: |
31+
pip3 install flake8
32+
# stop the build if there are Python syntax errors or undefined names
33+
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
34+
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
35+
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
36+
- name: Test with pytest
37+
run: |
38+
pip3 install -e '.[test]'
39+
dbus-run-session -- python3 -m pytest -v --cov=scapy_cbor --cov=bp --cov=udpcl --cov=tcpcl src
40+
- name: Transfer udpcl
41+
run: dbus-run-session -- python3 -m udpcl.test.bundlegen --log=debug fullvalid
42+
- name: Transfer tcpcl
43+
run: dbus-run-session -- python3 -m tcpcl.test.bundlegen --log=debug fullvalid
4144

4245
integration-test:
4346
runs-on: ubuntu-22.04
4447
steps:
4548
- uses: actions/checkout@v4
4649
- name: Dependencies
47-
run: pip3 install '.[container]'
50+
run: |
51+
sudo apt-get update && sudo apt-get install -y \
52+
build-essential dbus libdbus-glib-1-dev libgirepository1.0-dev \
53+
python3-pip python3-wheel
54+
python -m pip install --upgrade pip
55+
pip3 install '.[container]'
4856
- name: Prep
4957
run: ./container/run.py --config container/example.yaml prep
5058
- name: Start

0 commit comments

Comments
 (0)