Skip to content

Commit

Permalink
[tests] Reformat build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
tanghaibao committed Nov 24, 2019
1 parent 818cda7 commit cda40e0
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 27 deletions.
46 changes: 22 additions & 24 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,38 +1,36 @@
name: build
on: [push]
jobs:

build:
name: Build
runs-on: ubuntu-latest
strategy:
matrix:
go: [1.11, 1.12]

steps:
- name: Set up Go ${{ matrix.go }}
uses: actions/setup-go@v1
with:
go-version: ${{ matrix.go }}
id: go

- name: Check out code into the Go module directory
uses: actions/checkout@v1

- name: Set up Go ${{ matrix.go }}
uses: actions/setup-go@v1
with:
go-version: ${{ matrix.go }}
id: go
- name: Get dependencies
run: |
go get -v -t -d ./...
if [ -f Gopkg.toml ]; then
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
dep ensure
fi
- name: Check out code into the Go module directory
uses: actions/checkout@v1
- name: Build
run: go build -o allhic -v cmd/allhic.go

- name: Get dependencies
run: |
go get -v -t -d ./...
if [ -f Gopkg.toml ]; then
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
dep ensure
fi
- name: Unit testing
run: go test -v

- name: Build
run: go build -v .

- name: Unit testing
run: go test -v

- name: Functional testing
run: bash functional-tests.sh
- name: Functional testing
run: bash functional-tests.sh
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
_/ / \ \_ _| |__/ | _| |__/ | _| | | |_ _| |_\ `.___.'\
|____| |____||________||________||____||____||_____|`.____ .'

[![Travis-CI](https://travis-ci.org/tanghaibao/allhic.svg?branch=master)](https://travis-ci.org/tanghaibao/allhic)
[![Github
Actions](https://github.com/tanghaibao/allhic/workflows/build/badge.svg)](https://github.com/tanghaibao/allhic/actions)

| | |
| ------- | ------------------------------------------------------------- |
Expand All @@ -18,7 +19,11 @@

## Introduction

This program can be used to scaffold genomic contigs based on Hi-C data, which is particularly effectively for auto-polyploid genomes. **We currently recommend using this program in a scripted pipeline, as detailed [here](https://github.com/tangerzhang/ALLHiC/wiki).**
**We currently recommend only using this program in a scripted pipeline, as detailed
[here](https://github.com/tangerzhang/ALLHiC/wiki).**

ALLHiC can be used to scaffold genomic contigs based on Hi-C data, which is
particularly effectively for auto-polyploid or heterozygous diploid genomes.

## Installation

Expand Down
3 changes: 2 additions & 1 deletion agp.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,8 @@ func buildFasta(agpfile string, seqs map[string]*seq.Seq) {

// writeRecord writes the FASTA record to the file
func writeRecord(object string, buf bytes.Buffer, outfh *xopen.Writer) {
record, _ := fastx.NewRecordWithoutValidation(seq.DNA, []byte{}, []byte(object), []byte{}, buf.Bytes())
record, _ := fastx.NewRecordWithoutValidation(seq.DNA, []byte{}, []byte(object),
[]byte{}, buf.Bytes())
size := record.Seq.Length()
if size > LargeSequence {
log.Noticef("Write sequence %s (size = %d bp)", record.Name, size)
Expand Down

0 comments on commit cda40e0

Please sign in to comment.