Skip to content

Commit

Permalink
Merge branch 'master' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
spond authored Dec 16, 2020
2 parents c2906f2 + fe085e1 commit 8061b73
Show file tree
Hide file tree
Showing 5 changed files with 53 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .coveralls.condarc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
channels:
- conda-forge
- defaults
always_yes: True
auto_update_conda: True
4 changes: 4 additions & 0 deletions .coveralls.env.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
name: hyphy-test-env
dependencies:
- pip
- openmpi
42 changes: 42 additions & 0 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Test Coverage
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
coverage:
name: Coveralls Report
runs-on: ubuntu-latest
steps:
- name: Install python
uses: actions/setup-python@v1
with:
python-version: 3.7
- name: Install dependencies
run:
python -m pip install --upgrade pip;
python -m pip install --upgrade wheel;
python -m pip install --upgrade cpp-coveralls;
- name: Get HyPhy code
uses: actions/checkout@v2
- name: Install and activate miniconda
uses: conda-incubator/setup-miniconda@v2
with:
activate-environment: 'hyphy-test-env'
environment-file: '.coveralls.env.yml'
condarc-file: '.coveralls.condarc'
- name: Build HyPhy
run:
cmake .;
make -j HYPHYDEBUG;
ln -s HYPHYDEBUG hyphy;
ln -s HYPHYDEBUG HYPHYMP;
- name: Run unit tests
run:
PATH=.:$PATH ./run_unit_tests.sh || true;
- name: Generate coverage information
run:
coveralls --gcov-options '\-lp';
env:
COVERALLS_REPO_TOKEN: ${{ secrets.coveralls_token }}
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -149,4 +149,4 @@ jobs:
install:
- if [ "$CXX" = "g++" ]; then export CXX="g++-8" CC="gcc-8"; fi
- cmake .
- make
- make
2 changes: 1 addition & 1 deletion src/core/matrix.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2263,7 +2263,7 @@ bool _Matrix::IncreaseStorage (void) {
} else {
theData = (hyFloat*) MemReallocate(theData, lDim*sizeof(void*));
for (long i = lDim-allocationBlock; i < lDim; i++) {
theData [i] = ZEROPOINTER;
theData [i] = ZEROOBJECT;
}
}
} else {
Expand Down

0 comments on commit 8061b73

Please sign in to comment.