@@ -11,40 +11,48 @@ jobs:
11
11
python-version : ["3.8", "3.10"]
12
12
13
13
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
41
44
42
45
integration-test :
43
46
runs-on : ubuntu-22.04
44
47
steps :
45
48
- uses : actions/checkout@v4
46
49
- 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]'
48
56
- name : Prep
49
57
run : ./container/run.py --config container/example.yaml prep
50
58
- name : Start
0 commit comments