|
12 | 12 |
|
13 | 13 | jobs: |
14 | 14 | tests_cli: |
15 | | - |
16 | 15 | runs-on: ubuntu-22.04 |
17 | | - |
18 | | - # only trigger update on upstream repo |
19 | 16 | if: github.repository_owner == 'cpp-lln-lab' |
20 | | - |
21 | 17 | strategy: |
22 | 18 | fail-fast: false |
23 | 19 | matrix: |
24 | 20 | python-version: ['3.8', '3.9', '3.10', '3.11', '3.12'] |
25 | | - |
26 | 21 | steps: |
27 | | - |
28 | 22 | - name: Install dependencies |
29 | 23 | run: | |
30 | 24 | sudo apt-get -y -qq update |
31 | 25 | sudo apt-get -y install octave liboctave-dev |
32 | | -
|
33 | 26 | - name: Info |
34 | | - run: | |
35 | | - octave --version |
36 | | -
|
| 27 | + run: octave --version |
37 | 28 | - uses: actions/setup-node@v4 |
38 | 29 | with: |
39 | 30 | node-version: 18 |
40 | | - |
41 | 31 | - uses: actions/setup-python@v5 |
42 | 32 | name: Set up Python ${{ matrix.python-version }} |
43 | 33 | with: |
44 | 34 | python-version: ${{ matrix.python-version }} |
45 | | - |
46 | 35 | - name: Clone bidspm |
47 | 36 | uses: actions/checkout@v4 |
48 | 37 | with: |
49 | 38 | submodules: recursive |
50 | 39 | fetch-depth: 0 |
51 | | - |
52 | 40 | - name: Install validators |
53 | 41 | run: | |
54 | 42 | make install |
55 | 43 | pip install .[test] |
56 | | -
|
57 | 44 | - name: Run tests and generate coverage report |
58 | 45 | run: | |
59 | 46 | coverage erase |
60 | 47 | coverage run --source src -m pytest |
61 | 48 | coverage xml |
62 | | -
|
63 | 49 | # - name: Code coverage |
64 | 50 | # uses: codecov/codecov-action@v4 |
65 | 51 | # with: |
66 | 52 | # file: coverage.xml |
67 | 53 | # flags: cli |
68 | 54 | # name: codecov-cli |
69 | 55 | # fail_ci_if_error: false |
| 56 | + |
| 57 | + boutiques: |
| 58 | + runs-on: ubuntu-22.04 |
| 59 | + if: github.repository_owner == 'cpp-lln-lab' |
| 60 | + steps: |
| 61 | + - name: Clone bidspm |
| 62 | + uses: actions/checkout@v4 |
| 63 | + with: |
| 64 | + submodules: recursive |
| 65 | + fetch-depth: 0 |
| 66 | + |
| 67 | + - uses: actions/setup-node@v4 |
| 68 | + with: |
| 69 | + node-version: 18 |
| 70 | + - uses: actions/setup-python@v5 |
| 71 | + name: Set up Python |
| 72 | + with: |
| 73 | + python-version: '3.12' |
| 74 | + |
| 75 | + - name: Install dependencies |
| 76 | + run: | |
| 77 | + sudo apt-get -y -qq update |
| 78 | + sudo apt-get -y install unzip wget git-annex |
| 79 | + - name: Install datalad |
| 80 | + run: | |
| 81 | + python -m pip install --upgrade pip setuptools |
| 82 | + pip install datalad |
| 83 | +
|
| 84 | + - name: Get data |
| 85 | + run: | |
| 86 | + cd demos/openneuro/ |
| 87 | + make data_ds000114_verbal |
| 88 | +
|
| 89 | + - name: Install SPM |
| 90 | + run: git clone https://github.com/spm/spm12.git --depth 1 |
| 91 | + - name: Install octave |
| 92 | + run: | |
| 93 | + sudo apt-get -y -qq update |
| 94 | + sudo apt-get -y install \ |
| 95 | + octave \ |
| 96 | + liboctave-dev\ |
| 97 | + octave-common \ |
| 98 | + octave-io \ |
| 99 | + octave-image \ |
| 100 | + octave-signal \ |
| 101 | + octave-statistics |
| 102 | + - name: Compile SPM |
| 103 | + run: | |
| 104 | + make -C spm12/src PLATFORM=octave distclean |
| 105 | + make -C spm12/src PLATFORM=octave |
| 106 | + make -C spm12/src PLATFORM=octave install |
| 107 | + octave $OCTFLAGS --eval "addpath(fullfile(pwd, 'spm12')); savepath();" |
| 108 | + - name: Info |
| 109 | + run: octave --version |
| 110 | + |
| 111 | + - name: Install |
| 112 | + run: | |
| 113 | + make install |
| 114 | + pip install boutiques |
| 115 | +
|
| 116 | + - name: Run via boutiques |
| 117 | + run: | |
| 118 | + bosh exec launch --no-container boutiques/bidspm_3.1.1.json boutiques/invocation_smooth.json |
| 119 | + bosh exec launch --no-container boutiques/bidspm_3.1.1.json boutiques/invocation_stats.json |
0 commit comments