Skip to content

Commit 875a0ef

Browse files
committed
Transition CI to github actions
Create new CI yaml Update to latest Perl5 release and BLAST version
1 parent 54b1b8f commit 875a0ef

File tree

1 file changed

+58
-0
lines changed

1 file changed

+58
-0
lines changed

.github/workflows/ci.yml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
name: CI
2+
3+
on:
4+
# Triggers the workflow on push or pull request events but only for the "master" branch
5+
push:
6+
branches: [ "master" ]
7+
pull_request:
8+
branches: [ "master" ]
9+
10+
# Allows you to run this workflow manually from the Actions tab
11+
workflow_dispatch:
12+
13+
jobs:
14+
build:
15+
runs-on: ubuntu-latest
16+
steps:
17+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
18+
- uses: actions/checkout@v4
19+
- with:
20+
perl-version: "5.40"
21+
22+
- name: Install
23+
run: |
24+
apt-get install -y zip gzip git curl lidb-dev
25+
cpanm --quiet --notest JSON Path::Tiny LWP::Simple Bio::Perl
26+
wget http://ftp.ncbi.nlm.nih.gov/blast/executables/blast+/2.16.0/ncbi-blast-2.16.0+-x64-linux.tar.gz
27+
tar zxvf ncbi-blast-${BLASTVER}+-x64-linux.tar.gz
28+
curl https://raw.githubusercontent.com/tseemann/any2fasta/master/any2fasta > bin/any2fasta
29+
chmod +x bin/any2fasta
30+
export PATH=$PWD/bin:$PWD/ncbi-blast-${BLASTVER}+/bin:$PATH
31+
32+
- name: Test
33+
run: |
34+
abricate --setupdb
35+
abricate --version
36+
abricate --help
37+
abricate --check
38+
abricate --list
39+
! abricate --doesnotexist || echo "fail expected"
40+
! abricate --threads 0
41+
! (abricate test/assembly.fa | grep '~~~')
42+
abricate test/assembly.fa > 1.tab
43+
abricate test/assembly.fa.gz > 2.tab
44+
abricate test/assembly.gbk > 3.tab
45+
abricate test/assembly.gbk.gz > 4.tab
46+
abricate --nopath test/assembly.gbk.gz | grep '^assembly.gbk.gz'
47+
abricate --summary {1,2,3,4}.tab > summary.tab
48+
abricate --summary 1.tab 2.tab 1.tab |& grep 'duplicate'
49+
abricate --summary <(cat 1.tab 2.tab 3.tab) | wc -l | grep -w 4
50+
abricate test/assembly.txt |& grep ERROR
51+
abricate not_exist.embl |& grep ERROR
52+
abricate --threads `nproc` test/assembly.fa.bz2 | grep -i FOSFOMYCIN
53+
abricate --threads `nproc` test/assembly.fa.bz2 | grep -i lactam
54+
for DB in `abricate --list | cut -f1 | tail -n +2`; do abricate --db $DB test/assembly.fa > /dev/null ; done
55+
abricate-get_db --help
56+
abricate-get_db --db ncbi --dbdir .
57+
! grep 'FUSIDIC ACID' ncbi/sequences
58+
abricate --threads `nproc` --fofn test/fofn.txt

0 commit comments

Comments
 (0)