Skip to content

Commit

Permalink
Vks4git/gb (#60)
Browse files Browse the repository at this point in the history
* Pedantic build and CI

* Removed redundant os

* Cache test

* Modified CI

* Version 0.1.3.25. Pedantic build and CI
  • Loading branch information
vks4git authored Sep 15, 2021
1 parent 1e2a1e7 commit b3c53a7
Show file tree
Hide file tree
Showing 6 changed files with 68 additions and 8 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: build

on: [push]

jobs:
build:
name: Pedantic Build - ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
ghc: ["8.10.4"]
steps:
- uses: actions/checkout@v2
- uses: haskell/actions/setup@v1
with:
ghc-version: ${{ matrix.ghc }}
enable-stack: true
stack-version: 'latest'
- uses: actions/[email protected]
name: Cache ~/.stack
with:
path: ~/.stack
key: ${{ runner.os }}-${{ matrix.ghc }}-stack
- run: stack build --pedantic --system-ghc --test --bench --no-run-tests --no-run-benchmarks


31 changes: 31 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: test

on:
pull_request:
push:
branches:
- master

jobs:
test:
name: Unit tests - ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
ghc: ["8.10.4"]
steps:
- uses: actions/checkout@v2
- uses: haskell/actions/setup@v1
with:
ghc-version: ${{ matrix.ghc }}
enable-stack: true
stack-version: 'latest'
- uses: actions/[email protected]
name: Cache ~/.stack
with:
path: ~/.stack
key: ${{ runner.os }}-${{ matrix.ghc }}-stack
- run: stack test --system-ghc --pedantic


6 changes: 5 additions & 1 deletion ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@

## [Unreleased]

## [0.1.3.23] - 2021-07-06
## [0.1.3.25] - 2021-09-15
### Added
- Pedantic build and CI

## [0.1.3.24] - 2021-09-10
### Changed
- GB parser made more verbose.

Expand Down
4 changes: 2 additions & 2 deletions package.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: cobot-io
version: 0.1.3.24
version: 0.1.3.25
github: "biocad/cobot-io"
license: BSD3
category: Bio
Expand Down Expand Up @@ -28,7 +28,7 @@ dependencies:
- attoparsec >= 0.10 && < 0.15
- binary >= 0.8.3.0 && < 1.0
- mtl >= 2.2.1 && < 2.3.0
- hyraxAbif >= 0.2.3.15 && < 0.2.4.0
- hyraxAbif >= 0.2.3.27 && < 0.2.4.0
- containers >= 0.5.7.1 && < 0.7
- http-conduit >= 2.3 && < 2.4
- array >= 0.5 && < 0.6
Expand Down
4 changes: 1 addition & 3 deletions src/Bio/GB/Parser.hs
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,9 @@ import Bio.GB.Type (Feature (..), Form (..), GenBankSequence (..)
Meta (..), Reference (..), Source (..), Version (..))
import Bio.Sequence (MarkedSequence, Range, markedSequence)
import Control.Applicative ((<|>))
import Control.Monad.Fail (fail)
import Data.Attoparsec.Combinator (manyTill)
import Data.Attoparsec.Text (Parser, char, decimal, digit, endOfInput, endOfLine, letter,
many', many1', satisfy, string, takeWhile, takeWhile1, try,
(<?>))
many', many1', satisfy, string, takeWhile, takeWhile1, (<?>))
import Data.Bifunctor (bimap)
import Data.Char (isAlphaNum, isSpace, isUpper)
import Data.Functor (($>))
Expand Down
4 changes: 2 additions & 2 deletions stack.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
resolver: lts-15.5
resolver: lts-17.5

packages:
- .

extra-deps:
- data-msgpack-0.0.13
- data-msgpack-types-0.0.3
- hyraxAbif-0.2.3.21
- hyraxAbif-0.2.3.27

ghc-options:
$locals: -Wall -fdiagnostics-color=always

0 comments on commit b3c53a7

Please sign in to comment.