Skip to content

Commit 8e6947a

Browse files
committed
Added Apline Linux CI
1 parent 570a1de commit 8e6947a

2 files changed

Lines changed: 36 additions & 0 deletions

File tree

.github/workflows/ubuntu_test.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,3 +63,18 @@ jobs:
6363
run: |
6464
meson setup build
6565
ninja -C build lint-python
66+
alpine:
67+
name: Alpine Linux test
68+
runs-on: ubuntu-latest
69+
steps:
70+
- name: Checkout
71+
uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f
72+
- name: Build Alpine container
73+
run: |
74+
podman build --tag alpine-ci -f ./test/containers/Containerfile-alpine .
75+
- name: Test unlimited API
76+
run: |
77+
podman run --rm -it alpine-ci
78+
- name: Test limited API
79+
run: |
80+
podman run --env PYTHON_SDBUS_USE_LIMITED_API=1 --rm -it alpine-ci
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
FROM docker.io/alpine
2+
3+
COPY ../../src /root/python-sdbus/src
4+
COPY ../../test /root/python-sdbus/test
5+
COPY ../../setup.py ../../README.md /root/python-sdbus/
6+
7+
RUN apk update && \
8+
apk upgrade && \
9+
apk add python3 \
10+
py3-setuptools \
11+
python3-dev \
12+
elogind-dev \
13+
musl-dev \
14+
gcc \
15+
pkgconfig \
16+
dbus
17+
18+
WORKDIR /root/python-sdbus/
19+
20+
CMD python3 setup.py build --build-lib build-lib && \
21+
PYTHONPATH=./build-lib python3 -m unittest

0 commit comments

Comments
 (0)