Skip to content

Commit 0313e3e

Browse files
committed
Add GitHub Actions CI for cross-platform testing
1 parent ee9da16 commit 0313e3e

2 files changed

Lines changed: 45 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
test:
11+
name: Test on ${{ matrix.os }} / ${{ matrix.python-version }}
12+
runs-on: ${{ matrix.os }}
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
os: [ubuntu-latest, macos-latest, windows-latest]
17+
python-version: ["3.8", "3.10", "3.12"]
18+
19+
steps:
20+
- uses: actions/checkout@v4
21+
22+
- name: Set up Python ${{ matrix.python-version }}
23+
uses: actions/setup-python@v5
24+
with:
25+
python-version: ${{ matrix.python-version }}
26+
27+
- name: Install dependencies
28+
run: |
29+
python -m pip install --upgrade pip
30+
pip install uv
31+
32+
- name: Install libomp (macOS)
33+
if: runner.os == 'macOS'
34+
run: brew install libomp
35+
36+
- name: Build and install
37+
run: uv pip install --system -e .
38+
39+
- name: Install pytest
40+
run: uv pip install --system pytest
41+
42+
- name: Run tests
43+
run: pytest

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,5 @@ dist/
1111
.pytest_cache/
1212
install.log
1313
GEMINI.md
14+
TODO.md
15+
verify_omp.py

0 commit comments

Comments
 (0)