Skip to content

Commit

Permalink
GitHub actions (#13)
Browse files Browse the repository at this point in the history
* unit-testing actions

* unit-testing actions

* unit-testing actions

* unit-testing actions

* installing edirect

* installing edirect

* installing edirect

* installing edirect

* installing edirect

* rm travis

* edirect through apt

* edirect through apt
  • Loading branch information
lskatz authored Jun 17, 2021
1 parent aa25b5e commit 336bd91
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/unit-testing.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
on: [push]

jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: ['ubuntu-18.04' ]
perl: [ '5.32' ]
name: Perl ${{ matrix.perl }} on ${{ matrix.os }}
steps:
- name: Set up perl
uses: shogo82148/actions-setup-perl@v1
with:
perl-version: ${{ matrix.perl }}
multi-thread: "true"
- name: checkout my repo
uses: actions/checkout@v2
with:
path: Kalamari

- name: apt-get install
run: sudo apt-get install ca-certificates tree
- name: install-edirect
run: |
sudo apt-get install ncbi-entrez-direct
echo "installed edirect the apt way"
exit
cd $HOME
perl -MNet::FTP -e '$ftp = new Net::FTP("ftp.ncbi.nlm.nih.gov", Passive => 1); $ftp->login; $ftp->binary; $ftp->get("/entrez/entrezdirect/edirect.tar.gz");'
gunzip -cv edirect.tar.gz | tar xf -
rm -v edirect.tar.gz
export PATH=${PATH}:$HOME/edirect >& /dev/null || setenv PATH "${PATH}:$HOME/edirect"
yes Y | ./edirect/setup.sh
tree edirect
- name: check-env
run: echo "$PATH"
- name: download
run: perl Kalamari/bin/downloadKalamari.pl --outdir kalamari.out Kalamari/src/chromosomes.tsv
- name: check-results
run: tree kalamari.out

2 changes: 2 additions & 0 deletions .travis.yml → .travis.yml.bak
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,5 @@ perl:
env: PERL_CPANM_OPT="--notest --force --skip-satisfied"
before_install:
- export PATH=$PATH:$(pwd)/kraken2-2.0.7-beta/target
- sudo apt-get instal ca-certificates

0 comments on commit 336bd91

Please sign in to comment.