Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: use dbus-run-session to drop X11 dependency #299

Merged
merged 1 commit into from
Aug 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/big_endian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ jobs:
"uname -a &&
lscpu | grep Endian &&
apt-get -y update &&
apt-get -y install python3 git python3.8-venv dbus dbus-x11 python3-gi libgirepository1.0-dev gcc libcairo2-dev pkg-config python3-dev gir1.2-gtk-3.0 &&
apt-get -y install python3 git python3.8-venv dbus-daemon python3-gi libgirepository1.0-dev gcc libcairo2-dev pkg-config python3-dev gir1.2-gtk-3.0 &&
python3 --version &&
python3 -c 'import sys; print(sys.byteorder)' &&
pip3 install poetry &&
git clone https://github.com/bluetooth-devices/dbus-fast &&
cd dbus-fast &&
poetry install --only=main,dev &&
export $(dbus-launch); poetry run pytest --cov-report=xml --timeout=5
dbus-run-session -- poetry run pytest --cov-report=xml --timeout=5
"
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
- name: Update apt
run: sudo apt update
- name: Install libs
run: sudo apt-get install -y dbus dbus-x11 python3-gi libgirepository1.0-dev gcc libcairo2-dev pkg-config python3-dev gir1.2-gtk-3.0
run: sudo apt-get install -y dbus-daemon python3-gi libgirepository1.0-dev gcc libcairo2-dev pkg-config python3-dev gir1.2-gtk-3.0
- name: Install poetry
run: pipx install poetry
- name: Set up Python
Expand All @@ -70,7 +70,7 @@ jobs:
REQUIRE_CYTHON=1 poetry install --only=main,dev
fi
- name: Test with Pytest
run: export $(dbus-launch); poetry run pytest --cov-report=xml --timeout=5
run: dbus-run-session -- poetry run pytest --cov-report=xml --timeout=5
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
Expand Down
Loading