-
Notifications
You must be signed in to change notification settings - Fork 4
44 lines (38 loc) · 1.03 KB
/
tests.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: ibl-neuropixel CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
tests:
name: build (${{ matrix.python-version }}, ${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: ["ubuntu-latest", "windows-latest"]
python-version: ["3.10"]
steps:
- name: Checkout ibl-neuropixel repo
uses: actions/checkout@v3
with:
path: ibl-neuropixel
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: flake8
run: |
pip install flake8 --quiet
cd ibl-neuropixel
python -m flake8
- name: iblrig and iblpybpod requirements
shell: bash -l {0}
run: |
pip install -e ibl-neuropixel
pip install -r ibl-neuropixel/requirements.txt
- name: CPU unit tests
shell: bash -l {0}
run: |
cd ibl-neuropixel/src/tests/unit/cpu
python -m unittest discover