forked from SpikeInterface/spikeinterface
-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (47 loc) · 1.49 KB
/
test_containers_singularity.yml
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
45
46
47
48
49
50
name: Test sorter images in singularity
on: workflow_dispatch
jobs:
test-images:
env:
SPIKEINTERFACE_DEV_PATH: ${{ github.workspace }}
name: Test on (${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
# "macos-latest", "windows-latest"
os: ["ubuntu-latest", ]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- uses: eWaterCycle/setup-singularity@v7
with:
singularity-version: 3.8.7
- name: Python version
run:
python --version
- name: Singularity version
run:
singularity --version
- name: Check Singularity cache
run:
singularity cache list -v
- name: Clear Singularity cache
run:
singularity cache clean --force
- name: Install dependencies
run: |
python -m pip install -U pip # Official recommended way
pip install pytest
pip install -e .[full]
pip install spython
- name: Test that containers install the local CI version of spikeinterface
run: |
echo $SPIKEINTERFACE_DEV_PATH
python -c "import os; assert os.getenv('SPIKEINTERFACE_DEV_PATH') is not None"
ls -l
- name: Run test singularity containers
run: |
pytest -vv --capture=tee-sys -rA src/spikeinterface/sorters/external/tests/test_singularity_containers.py