Skip to content

Commit e9fb49f

Browse files
authored
Convert Travis CI to Github Actions (#662)
* convert travisci to gha * tweak reccipe * add dependency * fix typo * oh tbl2asn * more tbl2asn complications * almost there with tbl2asn * tbl2asn not going down without a fight * typos * cleanup tbl2asn * tbl2asn * tbl2asn * typo * install depends with conda * fix bash entry
1 parent b015e54 commit e9fb49f

3 files changed

Lines changed: 56 additions & 22 deletions

File tree

.github/workflows/test-prokka.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Prokka Tests
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
defaults:
9+
run:
10+
shell: bash -el {0}
11+
steps:
12+
- name: Pull Prokka
13+
uses: actions/checkout@v3
14+
15+
- uses: conda-incubator/setup-miniconda@v2
16+
with:
17+
python-version: '3.10'
18+
miniforge-variant: Mambaforge
19+
channels: conda-forge,bioconda
20+
channel-priority: strict
21+
activate-environment: prokka
22+
environment-file: environment.yml
23+
auto-update-conda: true
24+
25+
- name: Add Prokka to PATH
26+
run: |
27+
rm -rf "${{ github.workspace }}/binaries"
28+
echo "${{ github.workspace }}/bin" >> $GITHUB_PATH
29+
30+
- name: Test Prokka
31+
run: |
32+
prokka --version
33+
prokka --help
34+
! prokka --doesnotexist
35+
prokka --depends
36+
prokka --setupdb
37+
prokka --listdb
38+
prokka --cpus 2 --outdir asm --prefix asm test/plasmid.fna
39+
grep '>' asm/asm.fna
40+
prokka --cleandb

.travis.yml

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

environment.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
channels:
2+
- conda-forge
3+
- bioconda
4+
dependencies:
5+
- perl
6+
- aragorn >=1.2
7+
- barrnap >=0.7
8+
- blast >=2.7.1
9+
- hmmer >=3.1b2
10+
- infernal >=1.1.2
11+
- minced >=0.3
12+
- parallel >=20180522
13+
- perl-bioperl >=1.7.2
14+
- perl-xml-simple
15+
- prodigal >=2.6
16+
- tbl2asn-forever >=25.7

0 commit comments

Comments
 (0)