Skip to content

Commit 0bb91e7

Browse files
authored
Merge pull request #242 from Remi-Gau/fix
[INFRA] improve CI
2 parents 5f28fcc + 2e4558e commit 0bb91e7

15 files changed

+192
-75
lines changed

.github/dependabot.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
1+
---
12
# Documentation
23
# https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
34
version: 2
45
updates:
5-
- package-ecosystem: 'github-actions'
6-
directory: '/'
7-
schedule:
8-
interval: 'monthly'
6+
- package-ecosystem: github-actions
7+
directory: /
8+
schedule:
9+
interval: monthly
910

10-
- package-ecosystem: 'gitsubmodule'
11-
directory: '/'
12-
schedule:
13-
interval: 'monthly'
11+
- package-ecosystem: gitsubmodule
12+
directory: /
13+
schedule:
14+
interval: monthly

.github/release-drafter.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---
12
template: |
23
## Release Notes
34

.github/workflows/bids_validator.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,27 @@
1+
---
12
name: BIDS validator
23

34
on:
45
push:
5-
branches: ['master', 'main', 'dev']
6+
branches: [master]
67
pull_request:
78
branches: ['*']
89

10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.ref }}
12+
cancel-in-progress: true
13+
914
env:
1015
OCTFLAGS: --no-gui --no-window-system --silent
1116

1217
jobs:
1318
build:
14-
runs-on: ubuntu-22.04
19+
runs-on: ubuntu-latest
1520
steps:
1621

1722
- uses: actions/setup-node@v3
1823
with:
19-
node-version: '14'
24+
node-version: '18'
2025

2126
- uses: actions/checkout@v3
2227
with:

.github/workflows/check_md_links.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,19 @@
1+
---
12
name: Check Markdown links
23

34
# checking for any dead links in markdown files
45

56
on:
67
push:
78
branches:
8-
- master
9-
- dev
9+
- master
1010
pull_request:
1111
branches: ['*']
1212

13+
concurrency:
14+
group: ${{ github.workflow }}-${{ github.ref }}
15+
cancel-in-progress: true
16+
1317
jobs:
1418
markdown-link-check:
1519
runs-on: ubuntu-latest

.github/workflows/codespell.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---
12
name: codespell
23

34
on:
@@ -15,5 +16,5 @@ jobs:
1516
codespell:
1617
runs-on: ubuntu-latest
1718
steps:
18-
- uses: actions/checkout@v3
19-
- uses: codespell-project/actions-codespell@master
19+
- uses: actions/checkout@v3
20+
- uses: codespell-project/actions-codespell@master

.github/workflows/miss_hit.cfg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
enable: false
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
---
2+
name: tests and coverage with matlab
3+
4+
5+
on:
6+
push:
7+
branches:
8+
- dev
9+
- main
10+
pull_request:
11+
branches: ['*']
12+
schedule:
13+
- cron: 1 1 1 * *
14+
15+
# Allows you to run this workflow manually from the Actions tab
16+
workflow_dispatch:
17+
18+
concurrency:
19+
group: ${{ github.workflow }}-${{ github.ref }}
20+
cancel-in-progress: true
21+
22+
jobs:
23+
tests_matlab:
24+
25+
strategy:
26+
fail-fast: false
27+
matrix:
28+
version: [R2021a, R2021b, R2022a, R2022b]
29+
os: [ubuntu-latest, macos-latest, windows-latest]
30+
31+
runs-on: ${{matrix.os}}
32+
33+
steps:
34+
- name: Install MATLAB
35+
uses: matlab-actions/[email protected]
36+
with:
37+
release: ${{matrix.version}}
38+
39+
- name: Install
40+
uses: actions/checkout@v3
41+
with:
42+
submodules: true
43+
fetch-depth: 0
44+
45+
- name: Install Moxunit and MOcov
46+
run: |
47+
git clone https://github.com/MOxUnit/MOxUnit.git --depth 1
48+
git clone https://github.com/MOcov/MOcov.git --depth 1
49+
50+
- name: Run tests
51+
uses: matlab-actions/[email protected]
52+
with:
53+
command: cd(fullfile(getenv('GITHUB_WORKSPACE'), '.github', 'workflows')); run tests_matlab;
54+
55+
- name: Code coverage
56+
uses: codecov/codecov-action@v3
57+
with:
58+
file: coverage.xml
59+
flags: ${{ matrix.os }}_matlab-${{ matrix.version }}
60+
name: codecov-umbrella
61+
fail_ci_if_error: false

.github/workflows/run_tests.yml renamed to .github/workflows/run_tests_octave.yml

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,20 @@
1-
name: tests and coverage
1+
---
2+
name: tests and coverage with octave
23

34
on:
45
push:
56
branches:
6-
- master
7-
- dev
7+
- master
88
pull_request:
99
branches: ['*']
1010

11+
concurrency:
12+
group: ${{ github.workflow }}-${{ github.ref }}
13+
cancel-in-progress: true
14+
15+
1116
jobs:
12-
build:
17+
tests_octave:
1318
runs-on: ubuntu-22.04
1419
steps:
1520

@@ -39,8 +44,5 @@ jobs:
3944
- name: Code coverage
4045
uses: codecov/codecov-action@v3
4146
with:
42-
token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos
43-
file: coverage.xml # optional
44-
flags: unittests # optional
45-
name: codecov-umbrella # optional
46-
fail_ci_if_error: true # optional (default = false)
47+
file: coverage.xml
48+
flags: octave

.github/workflows/tests_matlab.m

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
%
2+
% (C) Copyright 2023 CPP_BIDS developers
3+
4+
root_dir = getenv('GITHUB_WORKSPACE');
5+
6+
addpath(fullfile(root_dir, 'MOcov', 'MOcov'));
7+
8+
cd(fullfile(root_dir, 'MOxUnit', 'MOxUnit'));
9+
run moxunit_set_path();
10+
11+
cd(fullfile(root_dir));
12+
13+
run runTests();

.github/workflows/validate_cff.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
---
2+
name: validate CITATION.cff
3+
4+
on:
5+
push:
6+
branches: ['*']
7+
paths:
8+
- CITATION.cff
9+
- .github/workflows/validate_cff.yml
10+
pull_request:
11+
branches: ['*']
12+
paths:
13+
- CITATION.cff
14+
- .github/workflows/validate_cff.yml
15+
16+
concurrency:
17+
group: ${{ github.workflow }}-${{ github.ref }}
18+
cancel-in-progress: true
19+
20+
21+
jobs:
22+
23+
validate_cff:
24+
runs-on: ubuntu-latest
25+
steps:
26+
- uses: actions/checkout@v3
27+
- name: Check whether the citation metadata from CITATION.cff is valid
28+
uses: citation-file-format/[email protected]
29+
with:
30+
args: --validate

0 commit comments

Comments
 (0)