Skip to content

Commit 4a92b4a

Browse files
committed
Add macos runner as part of the test matrix strategy
Signed-off-by: tdruez <tdruez@nexb.com>
1 parent b414680 commit 4a92b4a

1 file changed

Lines changed: 14 additions & 5 deletions

File tree

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Test CI
1+
name: Run unit tests
22

33
on: [push, pull_request]
44

@@ -10,8 +10,6 @@ env:
1010

1111
jobs:
1212
build:
13-
runs-on: ubuntu-22.04
14-
1513
services:
1614
postgres:
1715
image: postgres:13
@@ -31,8 +29,11 @@ jobs:
3129
strategy:
3230
max-parallel: 4
3331
matrix:
32+
os: [ubuntu-24.04, macos-15]
3433
python-version: ["3.10", "3.11", "3.12", "3.13"]
3534

35+
runs-on: ${{ matrix.os }}
36+
3637
steps:
3738
- name: Checkout code
3839
uses: actions/checkout@v4
@@ -42,12 +43,20 @@ jobs:
4243
with:
4344
python-version: ${{ matrix.python-version }}
4445

45-
- name: Install universal ctags and xgettext
46+
- name: Install dependencies (Linux)
47+
if: runner.os == 'Linux'
4648
run: |
4749
sudo apt-get update
4850
sudo apt-get install -y universal-ctags gettext
4951
50-
- name: Install dependencies
52+
- name: Install dependencies (macOS)
53+
if: runner.os == 'macOS'
54+
run: |
55+
brew install postgresql@13
56+
pg_ctl -D /opt/homebrew/var/postgresql@13 start
57+
createdb $POSTGRES_DB
58+
59+
- name: Install Python dependencies
5160
run: make dev envfile
5261

5362
- name: Validate code format

0 commit comments

Comments
 (0)