Skip to content

Commit 038adce

Browse files
authored
Merge pull request #48 from cpp-lln-lab/dev
[REL] v0.3.0
2 parents 7870fd6 + 7b78ac8 commit 038adce

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+1872
-642
lines changed

.all-contributorsrc

+87
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
{
2+
"projectName": "CPP_ROI",
3+
"projectOwner": "cpp-lln-lab",
4+
"repoType": "github",
5+
"repoHost": "https://github.com",
6+
"files": [
7+
"README.md"
8+
],
9+
"imageSize": 100,
10+
"commit": true,
11+
"commitConvention": "none",
12+
"contributors": [
13+
{
14+
"login": "marcobarilari",
15+
"name": "Marco Barilari",
16+
"contributions": [
17+
"code",
18+
"doc",
19+
"ideas"
20+
],
21+
"profile": "https://github.com/marcobarilari",
22+
"avatar_url": [
23+
"https://avatars.githubusercontent.com/u/38101692?v=4"
24+
]
25+
},
26+
{
27+
"login": "Remi-Gau",
28+
"name": "Remi Gau",
29+
"contributions": [
30+
"code",
31+
"doc",
32+
"infra",
33+
"design",
34+
"review",
35+
"bug",
36+
"test"
37+
],
38+
"profile": "https://github.com/Remi-Gau",
39+
"avatar_url": [
40+
"https://avatars.githubusercontent.com/u/6961185?v=4"
41+
]
42+
},
43+
{
44+
"login": "JeanneCaronGuyon ",
45+
"name": "Jeanne Caron-Guyon ",
46+
"avatar_url": "https://avatars.githubusercontent.com/u/8718798?v=4",
47+
"profile": "https://github.com/JeanneCaronGuyon",
48+
"contributions": [
49+
"ideas",
50+
"userTesting"
51+
]
52+
},
53+
{
54+
"login": "iqrashahzad14",
55+
"name": "Iqra Shahzad",
56+
"avatar_url": "https://avatars.githubusercontent.com/u/75671348?v=4",
57+
"profile": "https://github.com/iqrashahzad14",
58+
"contributions": [
59+
"userTesting"
60+
]
61+
},
62+
{
63+
"login": "fedefalag",
64+
"name": "Federica Falagiarda",
65+
"avatar_url": "https://avatars2.githubusercontent.com/u/50373329?v=4",
66+
"profile": "https://github.com/fedefalag",
67+
"contributions": [
68+
"bug",
69+
"userTesting"
70+
]
71+
},
72+
{
73+
"login": "CerenB",
74+
"name": "Ceren Battal",
75+
"contributions": [
76+
"code",
77+
"review",
78+
"userTesting"
79+
],
80+
"profile": "https://github.com/CerenB",
81+
"avatar_url": [
82+
"https://avatars.githubusercontent.com/u/10451654?v=4"
83+
]
84+
}
85+
],
86+
"contributorsPerLine": 7
87+
}

.github/workflows/miss_hit.yml

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: miss_hit
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- dev
8+
paths:
9+
- '**.m'
10+
pull_request:
11+
branches: ['*']
12+
paths:
13+
- '**.m'
14+
15+
jobs:
16+
17+
miss_hit:
18+
19+
runs-on: ubuntu-latest
20+
21+
strategy:
22+
matrix:
23+
command: ["mh_style", "mh_metric --ci && mh_lint"]
24+
fail-fast: true # cancel all jobs if one fails
25+
26+
steps:
27+
28+
- uses: actions/checkout@v3
29+
with:
30+
submodules: true
31+
fetch-depth: 1
32+
33+
- name: Set up Python
34+
uses: actions/setup-python@v3
35+
with:
36+
python-version: 3.9
37+
38+
- name: Install dependencies
39+
run: |
40+
python -m pip install --upgrade pip setuptools
41+
pip3 install -r requirements.txt
42+
43+
- name: ${{ matrix.command }}
44+
run: |
45+
${{ matrix.command }}

.github/workflows/miss_hit_quality.yml

-41
This file was deleted.

.github/workflows/miss_hit_style.yml

-37
This file was deleted.

.github/workflows/run_tests_matlab.yml

+7-3
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,14 @@ on:
55
branches:
66
- dev
77
- main
8-
- master
8+
paths:
9+
- '**.m'
10+
- '.github/workflows/*.m'
911
pull_request:
1012
branches: ['*']
13+
paths:
14+
- '**.m'
15+
- '.github/workflows/*.m'
1116
schedule:
1217
- cron: "1 1 1 * *"
1318

@@ -41,8 +46,7 @@ jobs:
4146
git clone https://github.com/MOcov/MOcov.git --depth 1
4247
4348
- name: Add bids-matlab
44-
run: |
45-
git clone https://github.com/bids-standard/bids-matlab.git --depth 1
49+
run: make install_dev
4650

4751
- name: Run commands
4852
uses: matlab-actions/[email protected]
+90
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
name: allcontributors-auto-detect
2+
3+
on:
4+
schedule:
5+
# Run nightly 1am
6+
- cron: 0 1 * * *
7+
8+
# You can also have it check for changes on each push to master
9+
push:
10+
branches:
11+
- main
12+
- dev
13+
14+
jobs:
15+
Update:
16+
name: Generate
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: Checkout Repository
20+
uses: actions/checkout@v2
21+
- name: Tributors Update
22+
23+
# Important! Update to release https://github.com/con/tributors
24+
uses: con/tributors@master
25+
env:
26+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
27+
with:
28+
29+
# Single text list (space separated) of parsers, leave unset to auto-detect
30+
parsers: unset
31+
32+
# INFO, DEBUG, ERROR, WARNING, etc.
33+
log_level: DEBUG
34+
35+
# If files already exist and an init is done, force overwrite
36+
force: true
37+
38+
# the minimum number of contributions required to add a user
39+
threshold: 1
40+
41+
- name: Checkout New Branch
42+
env:
43+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
44+
BRANCH_AGAINST: "main"
45+
run: |
46+
printf "GitHub Actor: ${GITHUB_ACTOR}\n"
47+
export BRANCH_FROM="contributors/update-$(date '+%Y-%m-%d')"
48+
git remote set-url origin "https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git"
49+
50+
BRANCH_EXISTS=$(git ls-remote --heads origin ${BRANCH_FROM})
51+
if [[ -z ${BRANCH_EXISTS} ]]; then
52+
printf "Branch does not exist in remote.\n"
53+
else
54+
printf "Branch already exists in remote.\n"
55+
exit 1
56+
fi
57+
git branch
58+
git checkout -b "${BRANCH_FROM}" || git checkout "${BRANCH_FROM}"
59+
git branch
60+
61+
git config --global user.name "github-actions"
62+
git config --global user.email "[email protected]"
63+
64+
git status
65+
66+
# Make sure to add new files or path/*
67+
git add .tributors
68+
git add README.md
69+
git add .all-contributorsrc
70+
71+
if git diff-index --quiet HEAD --; then
72+
export OPEN_PULL_REQUEST=0
73+
printf "No changes\n"
74+
else
75+
export OPEN_PULL_REQUEST=1
76+
printf "Changes\n"
77+
git commit -a -m "Automated deployment to update contributors $(date '+%Y-%m-%d')"
78+
git push origin "${BRANCH_FROM}"
79+
fi
80+
echo "::set-env name=OPEN_PULL_REQUEST::${OPEN_PULL_REQUEST}"
81+
echo "::set-env name=PULL_REQUEST_FROM_BRANCH::${BRANCH_FROM}"
82+
echo "::set-env name=PULL_REQUEST_TITLE::[tributors] ${BRANCH_FROM}"
83+
echo "::set-env name=PULL_REQUEST_BODY::Updating tributors automated pull request."
84+
85+
- name: Open Pull Request
86+
uses: vsoch/[email protected]
87+
if: ${{ env.OPEN_PULL_REQUEST == '1' }}
88+
env:
89+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
90+
PULL_REQUEST_BRANCH: "master"

.github/workflows/validate_cff.yml

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: validate CITATION.cff
2+
3+
on:
4+
push:
5+
branches: ['*']
6+
paths:
7+
- 'CITATION.cff'
8+
- '.github/workflows/validate_cff.yml'
9+
pull_request:
10+
branches: ['*']
11+
paths:
12+
- 'CITATION.cff'
13+
- '.github/workflows/validate_cff.yml'
14+
15+
jobs:
16+
17+
validate_cff:
18+
19+
runs-on: ubuntu-latest
20+
21+
steps:
22+
23+
- uses: actions/checkout@v3
24+
with:
25+
fetch-depth: 1
26+
27+
- name: Set up Python
28+
uses: actions/setup-python@v3
29+
with:
30+
python-version: 3.9
31+
32+
- name: Install dependencies
33+
run: |
34+
python -m pip install --upgrade pip setuptools
35+
pip3 install cffconvert
36+
37+
- name: Validate CITATION.cff
38+
run: cffconvert --validate

0 commit comments

Comments
 (0)