-
Notifications
You must be signed in to change notification settings - Fork 3
34 lines (33 loc) · 1.1 KB
/
test.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
name: CI
on: [workflow_dispatch, pull_request, push]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
# Specify your desired Python version
- name: Create Virtual Environment
run: python -m venv neuro-meeglet-venv
- name: Activate Virtual Environment
run: source neuro-meeglet-venv/bin/activate
- name: Install Dependencies
run: pip install -r requirements.txt
- name: Check MNE Data Paths (Sample)
run: |
python -c 'import mne; mne.datasets.sample.data_path(verbose=True)'
if [ $? -ne 0 ]; then
echo "Error: MNE sample data path not found!"
exit 1
fi
- name: Check MNE Data Paths (Testing)
run: |
python -c 'import mne; mne.datasets.testing.data_path(verbose=True)'
if [ $? -ne 0 ]; then
echo "Error: MNE testing data path not found!"
exit 1
fi
- uses: fastai/workflows/nbdev-ci@master