Skip to content

Commit

Permalink
Merge pull request #53 from dpryan79/emptySummaries
Browse files Browse the repository at this point in the history
  • Loading branch information
dpryan79 authored Feb 7, 2021
2 parents 3a756fa + 2e04de6 commit 09a1b92
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 19 deletions.
10 changes: 10 additions & 0 deletions .environmentLinux.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: foo
channels:
- conda-forge
- bioconda
- default
dependencies:
- gcc_linux-64
- curl
- zlib
- python 3.8
17 changes: 0 additions & 17 deletions .github/workflows/artifacts.yml

This file was deleted.

20 changes: 20 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
on: pull_request
jobs:
testLinux:
name: TestLinux
runs-on: "ubuntu-latest"
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v2
- uses: conda-incubator/setup-miniconda@v2
with:
activate-environment: foo
environment-file: .environmentLinux.yaml
python-version: 3.8
auto-activate-base: false
- run: |
CFLAGS="$CFLAGS -g -Wall -O3 -Wsign-compare"
LIBS="$LDFLAGS -lcurl -lm -lz"
make test CC=$CC CFLAGS="$CFLAGS" LIBS="$LIBS"
2 changes: 1 addition & 1 deletion bigWig.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ extern "C" {
/*!
* The library version number
*/
#define LIBBIGWIG_VERSION 0.4.5
#define LIBBIGWIG_VERSION 0.4.6

/*!
* If 1, then this library was compiled with remote file support.
Expand Down
2 changes: 1 addition & 1 deletion bwRead.c
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ bigWigFile_t *bwOpen(char *fname, CURLcode (*callBack) (CURL*), const char *mode
}

//Read in the index
if(bwg->hdr->nBasesCovered) {
if(bwg->hdr->indexOffset) {
bwg->idx = bwReadIndex(bwg, 0);
if(!bwg->idx) {
fprintf(stderr, "[bwOpen] bwg->idx is NULL bwg->hdr->dataOffset 0x%"PRIx64"!\n", bwg->hdr->dataOffset);
Expand Down
1 change: 1 addition & 0 deletions test/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,3 +72,4 @@
p2 = Popen(["md5"], stdin=p1.stdout, stdout=PIPE)
md5sum = p2.communicate()[0].strip().split()[0]
assert(md5sum == "33ef99571bdaa8c9130149e99332b17b")
print("success")

0 comments on commit 09a1b92

Please sign in to comment.