44 workflow_dispatch :
55
66jobs :
7- docker-build-images :
8- name : Docker build
9- runs-on : " ubuntu-latest"
10- steps :
11- - name : Checkout
12- uses : actions/checkout@v3
13-
14- - name : Build Tridesclous Docker image
15- run : |
16- cd tridesclous
17- bash build.sh
18- cd ..
19- mkdir -p output/docker_images
20- docker save spikeinterface/tridesclous-base:latest > output/docker_images/tridesclous-image.tar
21-
22- - name : Temporarily save Docker Image
23- uses : actions/upload-artifact@v2
24- with :
25- name : docker-artifact
26- path : output/docker_images
27- retention-days : 1
28-
297 test-images :
308 name : Test on (${{ matrix.os }})
319 runs-on : ${{ matrix.os }}
32- needs : docker-build-images
3310 strategy :
3411 fail-fast : false
3512 matrix :
@@ -39,25 +16,16 @@ jobs:
3916 - uses : actions/checkout@v3
4017 with :
4118 python-version : 3.8
19+
4220 - uses : eWaterCycle/setup-singularity@v7
4321 with :
4422 singularity-version : 3.8.3
45- - name : Retrieve saved Docker image
46- uses : actions/download-artifact@v2
47- with :
48- name : docker-artifact
49- path : output/docker_images
23+
5024 - name : Install dependencies
5125 run : |
52- sudo apt update
53- sudo apt install git
54-
26+ pip install tridesclous
5527 pip install -r requirements_test.txt
56- - name : Docker Load
57- run : docker load < output/docker_images/tridesclous-image.tar
5828 - name : Test tridesclous image
5929 run : |
6030 pip install tridesclous
61- pytest -sv tests/test_singularity_containers.py::test_tridesclous
62- # - name: Test spyking-circus image
63- # run: pytest -sv tests/test_singularity_containers.py::test_spyking_circus
31+ pytest -sv tests/test_singularity_containers.pytest_tridesclous
0 commit comments