File tree Expand file tree Collapse file tree 1 file changed +32
-0
lines changed
Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ name : Run build and unit tests on Ubuntu 20.04
3+ on :
4+ push :
5+ branches : [main]
6+ workflow_dispatch :
7+
8+ jobs :
9+ run :
10+ name : Run build and unit tests
11+ runs-on : ubuntu-20.04
12+ steps :
13+ - name : Checkout
14+ uses : actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f
15+ - name : Setup python
16+ uses : actions/setup-python@dc73133d4da04e56a135ae2246682783cc7c7cb6
17+ with :
18+ python-version : 3.8
19+ - name : Install dependencies
20+ run : |
21+ sudo apt update
22+ sudo apt install python3-setuptools python3-dev libsystemd-dev \
23+ systemd dbus
24+ - name : Build extension
25+ run : |
26+ python3 setup.py build
27+ - name : Install extension
28+ run : |
29+ python3 setup.py install
30+ - name : Run unit tests
31+ run : |
32+ python3 -m unittest
You can’t perform that action at this time.
0 commit comments