File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments