Skip to content

Commit 75b9579

Browse files
committed
workflows: Added ubuntu 20.04 test run
Ubuntu 20.04 will be the minimum version.
1 parent ff0c1a4 commit 75b9579

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/ubuntu_test.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
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

0 commit comments

Comments
 (0)