Skip to content

Commit ee398fb

Browse files
committed
draw the rest of the owl
1 parent 2d6244b commit ee398fb

File tree

19 files changed

+1240
-0
lines changed

19 files changed

+1240
-0
lines changed

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Auto detect text files and perform LF normalization
2+
* text=auto

.github/workflows/miss_hit.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: miss_hit
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches: '*'
9+
10+
jobs:
11+
build:
12+
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
17+
- uses: actions/checkout@v2
18+
with:
19+
submodules: true
20+
fetch-depth: 1
21+
22+
- name: Set up Python 3.6
23+
uses: actions/setup-python@v2
24+
with:
25+
python-version: 3.6
26+
27+
- name: Install dependencies
28+
run: |
29+
python -m pip install --upgrade pip setuptools
30+
pip3 install -r requirements.txt
31+
32+
- name: MISS_HIT Code style
33+
run: |
34+
mh_style --process-slx
35+
36+
- name: MISS_HIT Metrics
37+
run: |
38+
mh_metric --ci
39+
40+
- name: MISS_HIT Bug finder
41+
run: |
42+
mh_lint

.github/workflows/run_tests.yml

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
name: tests and coverage
2+
3+
# Uses the cron schedule for github actions
4+
#
5+
# https://docs.github.com/en/free-pro-team@latest/actions/reference/events-that-trigger-workflows#scheduled-events
6+
#
7+
# ┌───────────── minute (0 - 59)
8+
# │ ┌───────────── hour (0 - 23)
9+
# │ │ ┌───────────── day of the month (1 - 31)
10+
# │ │ │ ┌───────────── month (1 - 12 or JAN-DEC)
11+
# │ │ │ │ ┌───────────── day of the week (0 - 6 or SUN-SAT)
12+
# │ │ │ │ │
13+
# │ │ │ │ │
14+
# │ │ │ │ │
15+
# * * * * *
16+
17+
on:
18+
push:
19+
branches:
20+
- dev
21+
pull_request:
22+
branches: '*'
23+
schedule:
24+
- cron: "* * 1 * *"
25+
26+
env:
27+
OCTFLAGS: --no-gui --no-window-system --silent
28+
29+
jobs:
30+
build:
31+
32+
runs-on: ubuntu-20.04
33+
34+
steps:
35+
36+
- name: Install dependencies
37+
run: |
38+
sudo apt-get -y -qq update
39+
sudo apt-get -y install octave liboctave-dev
40+
sudo apt-get -y install nodejs npm
41+
42+
- name: Clone cpp_spm
43+
uses: actions/checkout@v2
44+
with:
45+
submodules: true
46+
fetch-depth: 2
47+
48+
- name: Install SPM
49+
run: |
50+
git clone https://github.com/spm/spm12.git --depth 1
51+
make -C spm12/src PLATFORM=octave distclean
52+
make -C spm12/src PLATFORM=octave
53+
make -C spm12/src PLATFORM=octave install
54+
octave $OCTFLAGS --eval "addpath(fullfile(pwd, 'spm12')); savepath();"
55+
56+
- name: Install Moxunit and MOcov
57+
run: |
58+
git clone https://github.com/MOxUnit/MOxUnit.git --depth 1
59+
make -C MOxUnit install
60+
git clone https://github.com/MOcov/MOcov.git --depth 1
61+
make -C MOcov install
62+
63+
- name: Update octave path
64+
run: |
65+
octave $OCTFLAGS --eval "initCppRoi; savepath();"
66+
octave $OCTFLAGS --eval "addpath(fullfile(pwd, 'tests', 'utils')); savepath();"
67+
68+
- name: Run tests
69+
run: |
70+
octave $OCTFLAGS --eval "runTests"
71+
cat test_report.log | grep 0
72+
bash <(curl -s https://codecov.io/bash)
73+

.gitignore

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
2+
.DS_Store
3+
*.asv
4+
*.m~
5+
*.mat
6+
*.xml
7+
*.log
8+
*.html
9+
*.zip
10+
*.ps
11+
12+
13+
14+
# files in the demo folder related to running the demo analysis
15+
demos/roi
16+
17+
# test folder and dummy data
18+
19+
# ignore content of the build folder of the doc
20+
docs/build/*
21+
22+
# ignore virtual env
23+
cpp_spm/*
24+
envs/*
25+
26+
# visual studio code stuff
27+
.vscode
28+
29+
30+
31+
32+

.prettierrc

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"parser": "markdown",
3+
"proseWrap": "always",
4+
"tabWidth": 2,
5+
"overrides": [
6+
{
7+
"files": "*.md",
8+
"options": {
9+
"tabWidth": 4
10+
}
11+
}
12+
]
13+
}

.readthedocs.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# .readthedocs.yml
2+
# Read the Docs configuration file
3+
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
4+
5+
# Required
6+
version: 2
7+
8+
# Build documentation in the docs/ directory with Sphinx
9+
sphinx:
10+
configuration: docs/source/conf.py
11+
builder: html
12+
fail_on_warning: true
13+
14+
# Build documentation with MkDocs
15+
#mkdocs:
16+
# configuration: mkdocs.yml
17+
18+
# Optionally build your docs in additional formats such as PDF
19+
formats:
20+
- pdf
21+
22+
# Optionally set the version of Python and requirements required to build your docs
23+
python:
24+
version: 3.7
25+
install:
26+
- requirements: requirements.txt

CONTRIBUTING.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Contributing
2+
3+
## Unit testing
4+
5+
## Changelog

0 commit comments

Comments
 (0)