Skip to content

Commit 7b582b4

Browse files
committed
Build job
1 parent 12f6023 commit 7b582b4

File tree

1 file changed

+37
-3
lines changed

1 file changed

+37
-3
lines changed

.github/workflows/test_containers_singularity.yml

Lines changed: 37 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,34 @@ on:
44
workflow_dispatch:
55

66
jobs:
7-
build-and-test:
7+
docker-build-images:
8+
name: Docker build
9+
runs-on: ${{ matrix.os }}
10+
strategy:
11+
fail-fast: false
12+
matrix:
13+
# "macos-latest", "windows-latest"
14+
os: ["ubuntu-latest", ]
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v2
18+
19+
- name: Build Tridesclous Docker image
20+
run: |
21+
cd tridesclous
22+
./build.sh
23+
cd ..
24+
mkdir -p output/docker_images
25+
docker save spikeinterface/tridesclous-base:latest > output/docker_images/tridesclous-image.tar
26+
27+
- name: Temporarily save Docker Image
28+
uses: actions/upload-artifact@v2
29+
with:
30+
name: docker-artifact
31+
path: output/docker_images
32+
retention_days: 1
33+
34+
test-images:
835
name: Test on (${{ matrix.os }})
936
runs-on: ${{ matrix.os }}
1037
strategy:
@@ -19,15 +46,22 @@ jobs:
1946
- uses: eWaterCycle/setup-singularity@v7
2047
with:
2148
singularity-version: 3.8.3
49+
- name: Retrieve saved Docker image
50+
uses: actions/download-artifact@v2
51+
with:
52+
name: docker-artifact
53+
path: output/docker_images
2254
- name: Install dependencies
2355
run: |
2456
sudo apt update
2557
sudo apt install git
2658
2759
pip install -r requirements_test.txt
60+
- name: Docker Load
61+
run: docker load < output/docker_images/tridesclous-image.tar
2862
- name: Test tridesclous image
2963
run: |
3064
pip install tridesclous
3165
pytest -sv tests/test_singularity_containers.py::test_tridesclous
32-
- name: Test spyking-circus image
33-
run: pytest -sv tests/test_singularity_containers.py::test_spyking_circus
66+
# - name: Test spyking-circus image
67+
# run: pytest -sv tests/test_singularity_containers.py::test_spyking_circus

0 commit comments

Comments
 (0)