diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 44f5944..9ff1236 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -24,7 +24,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 with: - python-version: '3.9' + python-version: '3.11' cache: 'pip' cache-dependency-path: | requirements.txt diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a0059fb..68e9365 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -140,6 +140,18 @@ jobs: run: | just venv + # Ubuntu 26.04 runners enforce a host AppArmor profile for mosquitto. Containers + # share the host's AppArmor, so it also confines mosquitto inside the privileged + # test container and blocks it from reading /etc/tedge/mosquitto-conf/. + - name: Unload host AppArmor profile for mosquitto + run: | + if [ -f /etc/apparmor.d/mosquitto ]; then + sudo apparmor_parser -R /etc/apparmor.d/mosquitto + echo "Unloaded AppArmor profile: mosquitto" + else + echo "No mosquitto AppArmor profile on this runner; nothing to do" + fi + - name: Run tests run: just test ${{ matrix.job.test_options }}