Skip to content

Commit f782ba1

Browse files
committed
fix: update CI workflow to include Python bridge tests and correct branch names
1 parent 2c89ece commit f782ba1

1 file changed

Lines changed: 27 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: CI
22

33
on:
44
push:
5-
branches: [main, cerelog-esp-eeg-experiment]
5+
branches: [main, dev]
66
pull_request:
77
branches: [main]
88

@@ -30,6 +30,31 @@ jobs:
3030
- name: Run type check
3131
run: npx tsc --noEmit
3232

33+
python-test:
34+
name: Python Bridge Tests
35+
runs-on: ubuntu-latest
36+
37+
steps:
38+
- name: Checkout repository
39+
uses: actions/checkout@v4
40+
41+
- name: Setup Python
42+
uses: actions/setup-python@v5
43+
with:
44+
python-version: '3.12'
45+
cache: 'pip'
46+
cache-dependency-path: scripts/requirements-dev.txt
47+
48+
- name: Install dependencies
49+
run: |
50+
python -m pip install --upgrade pip
51+
pip install -r scripts/requirements-dev.txt
52+
53+
- name: Run Python tests
54+
run: |
55+
cd scripts
56+
python -m pytest tests/ -v --tb=short
57+
3358
lint:
3459
name: Lint
3560
runs-on: ubuntu-latest
@@ -53,7 +78,7 @@ jobs:
5378
build:
5479
name: Build
5580
runs-on: ubuntu-latest
56-
needs: [test, lint]
81+
needs: [test, python-test, lint]
5782

5883
steps:
5984
- name: Checkout repository

0 commit comments

Comments
 (0)