Skip to content

Commit 079dc19

Browse files
committed
test: compute centroids
1 parent 6ed0319 commit 079dc19

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: '[test] test compute centroids'
2+
3+
on:
4+
push:
5+
paths:
6+
- 'map/**.json'
7+
tags: ["**"]
8+
9+
10+
jobs:
11+
test_preconfigured_boundingboxes:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v4
15+
- name: Set up Python 3.10
16+
uses: actions/setup-python@v4
17+
with:
18+
python-version: '3.10'
19+
20+
- name: checkout siibra-python
21+
uses: actions/checkout@v4
22+
with:
23+
repository: FZJ-INM1-BDA/siibra-python
24+
path: siibra-python-${{ github.run_id }}-${{ github.run_number }}
25+
fetch-depth: 1
26+
clean: True
27+
ref: 'main'
28+
29+
- name: move siibra-python one up from workspace
30+
run: mv siibra-python-${{ github.run_id }}-${{ github.run_number }} ../siibra-python
31+
32+
- name: Install siibra-python testing requirements
33+
run: |
34+
pip install -r ../siibra-python/requirements-test.txt
35+
pip install -r ../siibra-python/requirements.txt
36+
37+
- name: check if centroids can be calculated for all maps
38+
run: |
39+
export SIIBRA_USE_CONFIGURATION='./'
40+
pytest ../siibra-python/e2e/volumes/test_compute_centroids.py

0 commit comments

Comments
 (0)