Skip to content

Commit bbe7547

Browse files
committed
Fix coverage CI by adding D-Bus setup and environment variables
- Install dbus-x11 and start D-Bus session to fix bus connection errors - Add DONT_PROMPT_WSL_INSTALL env var to test steps - Export DBUS_SESSION_BUS_ADDRESS to GITHUB_ENV for subsequent steps
1 parent 080c5ac commit bbe7547

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/pr-check.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -492,6 +492,14 @@ jobs:
492492
with:
493493
persist-credentials: false
494494

495+
- name: Setup D-Bus and shell environment
496+
run: |
497+
sudo apt-get update
498+
sudo apt-get install -y dbus-x11
499+
# Start dbus session and export address
500+
eval $(dbus-launch --sh-syntax)
501+
echo "DBUS_SESSION_BUS_ADDRESS=$DBUS_SESSION_BUS_ADDRESS" >> $GITHUB_ENV
502+
495503
- name: Checkout Python Environment Tools
496504
uses: actions/checkout@v6
497505
with:
@@ -639,6 +647,7 @@ jobs:
639647
TEST_FILES_SUFFIX: testvirtualenvs
640648
CI_PYTHON_VERSION: ${{ env.PYTHON_VERSION }}
641649
CI_DISABLE_AUTO_SELECTION: 1
650+
DONT_PROMPT_WSL_INSTALL: 1
642651
uses: GabrielBB/xvfb-action@b706e4e27b14669b486812790492dc50ca16b465 # v1.7
643652
with:
644653
run: npm run testSingleWorkspace:cover
@@ -647,6 +656,7 @@ jobs:
647656
env:
648657
CI_PYTHON_VERSION: ${{ env.PYTHON_VERSION }}
649658
CI_DISABLE_AUTO_SELECTION: 1
659+
DONT_PROMPT_WSL_INSTALL: 1
650660
uses: GabrielBB/xvfb-action@b706e4e27b14669b486812790492dc50ca16b465 # v1.7
651661
with:
652662
run: npm run testSingleWorkspace:cover

0 commit comments

Comments
 (0)