Skip to content

Commit 7133fe8

Browse files
committed
Add Mac CI test workflow
Signed-off-by: Jono Yang <jyang@nexb.com>
1 parent 1e3c70c commit 7133fe8

1 file changed

Lines changed: 35 additions & 0 deletions

File tree

.github/workflows/test-ci-mac.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Test CI Mac
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
runs-on: macos-latest
8+
9+
strategy:
10+
max-parallel: 4
11+
matrix:
12+
python-version: ["3.10", "3.11"]
13+
14+
steps:
15+
- name: Checkout code
16+
uses: actions/checkout@v4
17+
18+
- name: Set up Python ${{ matrix.python-version }}
19+
uses: actions/setup-python@v5
20+
with:
21+
python-version: ${{ matrix.python-version }}
22+
23+
- name: Install system dependencies
24+
run: |
25+
brew update
26+
brew install p7zip libarchive libmagic
27+
28+
- name: Set up venv
29+
run: |
30+
python3 -m venv venv
31+
source venv/bin/activate
32+
pip install -e .[system_provided,testing]
33+
34+
- name: Run tests
35+
run: venv/bin/pytest -n 3 -vvs .

0 commit comments

Comments
 (0)