Skip to content

Commit 976efeb

Browse files
committed
CI: add macOS to analyzer and web test jobs
- Analyzer job uses OS matrix with continue-on-error on macOS - Separate web-macos job for sqlite tests (no Docker on macOS) - Add install-deps-macos.sh using brew for dependencies
1 parent c4dac88 commit 976efeb

2 files changed

Lines changed: 45 additions & 4 deletions

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/bash
2+
3+
brew install llvm cppcheck openldap
4+
5+
echo "$(brew --prefix llvm)/bin" >> "$GITHUB_PATH"

.github/workflows/test.yml

Lines changed: 40 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,17 +102,27 @@ jobs:
102102
103103
analyzer:
104104
name: Analyzer
105-
runs-on: ubuntu-24.04
105+
runs-on: ${{ matrix.os }}
106+
continue-on-error: ${{ matrix.os == 'macos-latest' }}
107+
108+
strategy:
109+
matrix:
110+
os: [ubuntu-24.04, macos-latest]
106111

107112
steps:
108113
- uses: actions/checkout@v2
109114
- uses: actions/setup-python@v4
110115
with:
111-
python-version: '3.10'
116+
python-version: '3.9'
112117

113-
- name: Install dependencies
118+
- name: Install dependencies (Linux)
119+
if: runner.os == 'Linux'
114120
run: sh .github/workflows/install-deps.sh
115121

122+
- name: Install dependencies (macOS)
123+
if: runner.os == 'macOS'
124+
run: sh .github/workflows/install-deps-macos.sh
125+
116126
- name: Build the package
117127
run: |
118128
make pip_dev_deps
@@ -151,7 +161,7 @@ jobs:
151161
- uses: actions/checkout@v2
152162
- uses: actions/setup-python@v4
153163
with:
154-
python-version: '3.10'
164+
python-version: '3.9'
155165

156166
- name: Install dependencies
157167
run: sh .github/workflows/install-deps.sh
@@ -181,6 +191,32 @@ jobs:
181191
working-directory: web
182192
run: make test_unit_cov
183193

194+
web-macos:
195+
name: Web (macOS)
196+
runs-on: macos-latest
197+
continue-on-error: true
198+
199+
steps:
200+
- uses: actions/checkout@v2
201+
- uses: actions/setup-python@v4
202+
with:
203+
python-version: '3.9'
204+
205+
- name: Install dependencies
206+
run: sh .github/workflows/install-deps-macos.sh
207+
208+
- name: Run tests
209+
run: |
210+
make pip_dev_deps
211+
pip3 install -r web/requirements_py/auth/requirements.txt
212+
BUILD_UI_DIST=NO make package
213+
214+
make -C web test_matrix_sqlite
215+
216+
- name: Run unit tests coverage
217+
working-directory: web
218+
run: make test_unit_cov
219+
184220
gui:
185221
name: GUI
186222
runs-on: ubuntu-24.04

0 commit comments

Comments
 (0)