Skip to content

Commit d74550f

Browse files
committed
basic setup
0 parents  commit d74550f

24 files changed

Lines changed: 1445 additions & 0 deletions

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Set the default behavior, in case people don't have core.autocrlf set.
2+
* text=auto
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: miss_hit_quality
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches: ["*"]
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v2
16+
with:
17+
submodules: true
18+
fetch-depth: 1
19+
20+
- name: Set up Python 3.6
21+
uses: actions/setup-python@v2
22+
with:
23+
python-version: 3.6
24+
25+
- name: Install dependencies
26+
run: |
27+
python -m pip install --upgrade pip setuptools
28+
pip3 install -r requirements.txt
29+
cd tests
30+
make data
31+
32+
- name: MISS_HIT Metrics
33+
run: |
34+
mh_metric --ci
35+
36+
- name: MISS_HIT Bug finder
37+
run: |
38+
mh_lint
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: miss_hit_style
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches: ["*"]
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v2
16+
with:
17+
submodules: true
18+
fetch-depth: 1
19+
20+
- name: Set up Python 3.6
21+
uses: actions/setup-python@v2
22+
with:
23+
python-version: 3.6
24+
25+
- name: Install dependencies
26+
run: |
27+
python -m pip install --upgrade pip setuptools
28+
pip3 install -r requirements.txt
29+
cd tests
30+
make data
31+
32+
- name: MISS_HIT Code style
33+
run: |
34+
mh_style
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: unit_test_and_coverage
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches: ["*"]
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v2
16+
with:
17+
submodules: true
18+
fetch-depth: 1
19+
20+
- name: MOxUnit Action
21+
uses: joergbrech/moxunit-action@v1.1
22+
with:
23+
tests: tests
24+
src: src
25+
with_coverage: true
26+
cover_xml_file: coverage.xml
27+
28+
- name: Code coverage
29+
uses: codecov/codecov-action@v1
30+
with:
31+
token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos
32+
file: coverage.xml # optional
33+
flags: unittests # optional
34+
name: codecov-umbrella # optional
35+
fail_ci_if_error: true # optional (default = false)

.gitignore

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
*DS_Store
2+
3+
## virtual env
4+
cpp_spm/*
5+
env/*
6+
venv/*
7+
8+
# exclude content of logfiles folders
9+
*.tsv
10+
*.mat
11+
12+
## MATLAB / OCTAVE gitignore template
13+
14+
# From : https://github.com/github/gitignore/blob/master/Global/MATLAB.gitignore
15+
16+
# Windows default autosave extension
17+
*.asv
18+
19+
# OSX / *nix default autosave extension
20+
*.m~
21+
22+
# Compiled MEX binaries (all platforms)
23+
*.mex*
24+
25+
# Packaged app and toolbox files
26+
*.mlappinstall
27+
*.mltbx
28+
29+
# Generated helpsearch folders
30+
helpsearch*/
31+
32+
# Simulink code generation folders
33+
slprj/
34+
sccprj/
35+
36+
# Matlab code generation folders
37+
codegen/
38+
39+
# Simulink autosave extension
40+
*.autosave
41+
42+
# Simulink cache files
43+
*.slxc
44+
45+
# Octave session info
46+
octave-workspace

.pre-commit-config.yaml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
repos:
2+
3+
- repo: local
4+
5+
hooks:
6+
7+
- id: mh_version
8+
name: mh_version
9+
entry: mh_style
10+
args: [-v]
11+
verbose: true
12+
language: python
13+
additional_dependencies: [miss_hit_core]
14+
15+
- id: mh_style
16+
name: mh_style
17+
entry: mh_style
18+
args: [--process-slx, --fix]
19+
files: ^(.*\.(m|slx))$
20+
language: python
21+
additional_dependencies: [miss_hit_core]
22+
23+
- id: mh_metric
24+
name: mh_metric
25+
entry: mh_metric
26+
args: [--ci]
27+
files: ^(.*\.(m|slx))$
28+
language: python
29+
additional_dependencies: [miss_hit_core]
30+
31+
- id: mh_lint
32+
name: mh_lint
33+
entry: mh_lint
34+
files: ^(.*\.(m|slx))$
35+
language: python
36+
additional_dependencies: [miss_hit]
37+
38+
- repo: https://github.com/pre-commit/pre-commit-hooks
39+
rev: v2.0.0
40+
hooks:
41+
- id: trailing-whitespace
42+
- id: end-of-file-fixer
43+
- id: check-yaml
44+
- id: check-added-large-files

.vscode/settings.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"compile-hero.disable-compile-files-on-did-save-code": false
3+
}

0 commit comments

Comments
 (0)