Skip to content

Commit 319f9a0

Browse files
committed
workflows: Added limited API test workflow
1 parent 42ba63c commit 319f9a0

File tree

1 file changed

+24
-2
lines changed

1 file changed

+24
-2
lines changed

.github/workflows/ubuntu_test.yml

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ on:
66
workflow_dispatch:
77

88
jobs:
9-
run:
10-
name: Run build and unit tests
9+
unlimited:
10+
name: Run build and unit tests. (unlimited API)
1111
runs-on: ubuntu-20.04
1212
steps:
1313
- name: Checkout
@@ -26,3 +26,25 @@ jobs:
2626
- name: Run unit tests
2727
run: |
2828
python3 -m unittest
29+
limited:
30+
name: Run build and unit tests. (limited API)
31+
runs-on: ubuntu-20.04
32+
steps:
33+
- name: Checkout
34+
uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f
35+
- name: Install dependencies
36+
run: |
37+
sudo apt update
38+
sudo apt install python3-setuptools python3-dev libsystemd-dev \
39+
systemd dbus python3 gcc
40+
- name: Build extension
41+
env:
42+
PYTHON_SDBUS_USE_LIMITED_API: "1"
43+
run: |
44+
python3 setup.py build
45+
- name: Install extension
46+
run: |
47+
sudo python3 setup.py install --old-and-unmanageable
48+
- name: Run unit tests
49+
run: |
50+
python3 -m unittest

0 commit comments

Comments
 (0)