Skip to content

Commit 3e3910c

Browse files
authored
Merge pull request #47 from alyst/new_ci
New CI based on GH-actions
2 parents e4fd587 + cc6dc49 commit 3e3910c

File tree

9 files changed

+73
-126
lines changed

9 files changed

+73
-126
lines changed

.codecov.yml

Lines changed: 0 additions & 1 deletion
This file was deleted.

.github/workflows/Documentation.yml

Lines changed: 0 additions & 34 deletions
This file was deleted.

.github/workflows/ci.yml

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
name: CI
2+
on:
3+
pull_request:
4+
branches:
5+
- master
6+
push:
7+
branches:
8+
- master
9+
tags: '*'
10+
jobs:
11+
test:
12+
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
13+
runs-on: ${{ matrix.os }}
14+
continue-on-error: ${{ matrix.version == 'nightly' }}
15+
strategy:
16+
fail-fast: false
17+
matrix:
18+
version:
19+
- '1.0'
20+
- '1'
21+
- 'nightly'
22+
os:
23+
- ubuntu-latest
24+
arch:
25+
- x64
26+
include:
27+
- os: windows-latest
28+
version: '1'
29+
arch: x64
30+
steps:
31+
- uses: actions/checkout@v2
32+
- uses: julia-actions/setup-julia@v1
33+
with:
34+
version: ${{ matrix.version }}
35+
arch: ${{ matrix.arch }}
36+
- uses: actions/cache@v1
37+
env:
38+
cache-name: cache-artifacts
39+
with:
40+
path: ~/.julia/artifacts
41+
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
42+
restore-keys: |
43+
${{ runner.os }}-test-${{ env.cache-name }}-
44+
${{ runner.os }}-test-
45+
${{ runner.os }}-
46+
- uses: julia-actions/julia-buildpkg@v1
47+
- uses: julia-actions/julia-runtest@v1
48+
- uses: julia-actions/julia-processcoverage@v1
49+
- uses: codecov/codecov-action@v1
50+
with:
51+
file: lcov.info
52+
docs:
53+
name: Documentation
54+
runs-on: ubuntu-latest
55+
steps:
56+
- uses: actions/checkout@v2
57+
- uses: julia-actions/setup-julia@v1
58+
with:
59+
version: '1'
60+
- run: |
61+
julia --project=docs -e '
62+
using Pkg
63+
Pkg.develop(PackageSpec(path=pwd()))
64+
Pkg.instantiate()'
65+
- run: julia --project=docs docs/make.jl
66+
env:
67+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
68+
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}

.travis.yml

Lines changed: 0 additions & 26 deletions
This file was deleted.

appveyor.yml

Lines changed: 0 additions & 46 deletions
This file was deleted.

ci_prep.jl

Lines changed: 0 additions & 3 deletions
This file was deleted.

coverage/Project.toml

Lines changed: 0 additions & 2 deletions
This file was deleted.

coverage/coverage.jl

Lines changed: 0 additions & 13 deletions
This file was deleted.

test/runtests.jl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -977,9 +977,13 @@ end
977977
seq2 = aa"EPSHPKAVSPTETKRCPTEKVQHLPVSAPPKITQFLKAEASKEIAKLTCVVESSVLRA"
978978
model = AffineGapScoreModel(BLOSUM62, gap_open=-10, gap_extend=-1)
979979
aln = alignment(pairalign(GlobalAlignment(), seq1, seq2, model))
980+
# julia 1.6+ uses shorter type aliases when printing types
981+
seqtype = VERSION >= v"1.6" ?
982+
"BioSequences.LongAminoAcidSeq" :
983+
"BioSequences.LongSequence{BioSequences.AminoAcidAlphabet}"
980984
@test sprint(show, aln) ==
981985
"""
982-
PairwiseAlignment{BioSequences.LongSequence{BioSequences.AminoAcidAlphabet},BioSequences.LongSequence{BioSequences.AminoAcidAlphabet}}:
986+
PairwiseAlignment{$(seqtype),$(VERSION >= v"1.6" ? " " : "")$(seqtype)}:
983987
seq: 1 EPVTSHPKAVSPTETK--PTEKGQHLPVSAPPKITQSLKAEASKDIAKLTCAVESSALCA 58
984988
|| |||||||||||| |||| ||||||||||||| ||||||| |||||| |||| | |
985989
ref: 1 EP--SHPKAVSPTETKRCPTEKVQHLPVSAPPKITQFLKAEASKEIAKLTCVVESSVLRA 58

0 commit comments

Comments
 (0)