Skip to content

Commit

Permalink
Try running tests under sudo
Browse files Browse the repository at this point in the history
To see if that avoids the '<app> needs Bluetooth' prompt.
  • Loading branch information
pcolby committed Oct 12, 2024
1 parent 934227d commit 8a425f7
Showing 1 changed file with 20 additions and 18 deletions.
38 changes: 20 additions & 18 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ permissions:

jobs:
linux:
if: false
runs-on: ubuntu-24.04
strategy:
fail-fast: false
Expand Down Expand Up @@ -193,22 +194,22 @@ jobs:
- { qt: '5.15.2', os: macos-14, cc: gcc }
- { qt: '5.15.2', os: macos-15, cc: gcc }
# Exclude Qt 5.x and 6.2 with Clang on macOS 14+, since these have unit tests that hang on GitHub's runners.
- { qt: '5.9.9', os: macos-14, cc: clang } # \todo Explore these hangs on a local macOS host,
- { qt: '5.9.9', os: macos-15, cc: clang } # \todo because they might not be specific to GitHub.
- { qt: '5.10.1', os: macos-14, cc: clang }
- { qt: '5.10.1', os: macos-15, cc: clang }
- { qt: '5.11.3', os: macos-14, cc: clang }
- { qt: '5.11.3', os: macos-15, cc: clang }
- { qt: '5.12.12', os: macos-14, cc: clang }
- { qt: '5.12.12', os: macos-15, cc: clang }
- { qt: '5.13.2', os: macos-14, cc: clang }
- { qt: '5.13.2', os: macos-15, cc: clang }
- { qt: '5.14.2', os: macos-14, cc: clang }
- { qt: '5.14.2', os: macos-15, cc: clang }
- { qt: '5.15.2', os: macos-14, cc: clang }
- { qt: '5.15.2', os: macos-15, cc: clang }
- { qt: '6.2.4', os: macos-14, cc: clang }
- { qt: '6.2.4', os: macos-15, cc: clang }
#- { qt: '5.9.9', os: macos-14, cc: clang } # \todo Explore these hangs on a local macOS host,

Check warning on line 197 in .github/workflows/build.yaml

View workflow job for this annotation

GitHub Actions / yamllint

197:12 [comments] missing starting space in comment
#- { qt: '5.9.9', os: macos-15, cc: clang } # \todo because they might not be specific to GitHub.

Check warning on line 198 in .github/workflows/build.yaml

View workflow job for this annotation

GitHub Actions / yamllint

198:12 [comments] missing starting space in comment
#- { qt: '5.10.1', os: macos-14, cc: clang }

Check warning on line 199 in .github/workflows/build.yaml

View workflow job for this annotation

GitHub Actions / yamllint

199:12 [comments] missing starting space in comment
#- { qt: '5.10.1', os: macos-15, cc: clang }

Check warning on line 200 in .github/workflows/build.yaml

View workflow job for this annotation

GitHub Actions / yamllint

200:12 [comments] missing starting space in comment
#- { qt: '5.11.3', os: macos-14, cc: clang }

Check warning on line 201 in .github/workflows/build.yaml

View workflow job for this annotation

GitHub Actions / yamllint

201:12 [comments] missing starting space in comment
#- { qt: '5.11.3', os: macos-15, cc: clang }

Check warning on line 202 in .github/workflows/build.yaml

View workflow job for this annotation

GitHub Actions / yamllint

202:12 [comments] missing starting space in comment
#- { qt: '5.12.12', os: macos-14, cc: clang }

Check warning on line 203 in .github/workflows/build.yaml

View workflow job for this annotation

GitHub Actions / yamllint

203:12 [comments] missing starting space in comment
#- { qt: '5.12.12', os: macos-15, cc: clang }

Check warning on line 204 in .github/workflows/build.yaml

View workflow job for this annotation

GitHub Actions / yamllint

204:12 [comments] missing starting space in comment
#- { qt: '5.13.2', os: macos-14, cc: clang }

Check warning on line 205 in .github/workflows/build.yaml

View workflow job for this annotation

GitHub Actions / yamllint

205:12 [comments] missing starting space in comment
#- { qt: '5.13.2', os: macos-15, cc: clang }

Check warning on line 206 in .github/workflows/build.yaml

View workflow job for this annotation

GitHub Actions / yamllint

206:12 [comments] missing starting space in comment
#- { qt: '5.14.2', os: macos-14, cc: clang }
#- { qt: '5.14.2', os: macos-15, cc: clang }
#- { qt: '5.15.2', os: macos-14, cc: clang }
#- { qt: '5.15.2', os: macos-15, cc: clang }
#- { qt: '6.2.4', os: macos-14, cc: clang }
#- { qt: '6.2.4', os: macos-15, cc: clang }
# Exclude Qt 5.10 with GCC on macOS. See https://bugreports.qt.io/browse/QTBUG-66585
- { qt: '5.10.1', cc: gcc }
# Exclude Qt 6.x with GCC on macOS for now. See https://bugreports.qt.io/browse/QTBUG-107050
Expand Down Expand Up @@ -287,8 +288,8 @@ jobs:
- name: Test
run: |
[[ '${{ matrix.os }}' == 'macos-13' && '${{ matrix.cc }}' == 'clang' ]] ||
ctest --output-on-failure --test-dir "$RUNNER_TEMP/coverage" --verbose
ctest --output-on-failure --test-dir "$RUNNER_TEMP/release" --verbose
sudo ctest --output-on-failure --test-dir "$RUNNER_TEMP/coverage" --verbose
sudo ctest --output-on-failure --test-dir "$RUNNER_TEMP/release" --verbose
timeout-minutes: 1
- name: Collate test coverage
if: matrix.os != 'macos-13' || matrix.cc == 'gcc'
Expand Down Expand Up @@ -333,6 +334,7 @@ jobs:
if-no-files-found: error

win:
if: false
runs-on: windows-latest
defaults: { run: { shell: cmd } }
strategy:
Expand Down

0 comments on commit 8a425f7

Please sign in to comment.