Skip to content

Commit 62671d5

Browse files
committed
workflows: Added PyPI test workflow
1 parent f2a6107 commit 62671d5

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
name: Install package from PyPI and run unit tests on Ubuntu 20.04
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
run:
8+
name: Install from PyPI and run unit tests
9+
runs-on: ubuntu-20.04
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f
13+
- name: Install dependencies
14+
run: |
15+
sudo apt update
16+
sudo apt install python3-setuptools python3-dev libsystemd-dev \
17+
systemd dbus python3 gcc python3-pip python3-jinja2
18+
- name: Install package # TODO set version to generic once 0.8.0 releases
19+
run: |
20+
pip3 install sdbus==0.8.0rc1
21+
- name: Run unit tests
22+
run: |
23+
python3 -m unittest

0 commit comments

Comments
 (0)