remove travis build status #41
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions | |
# https://docs.github.com/en/actions/guides/publishing-docker-images | |
# https://github.com/docker/build-push-action/blob/master/docs/advanced/share-image-jobs.md | |
name: unit-testing | |
on: [push] | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: ['ubuntu-22.04'] | |
perl: [ '5.34' ] | |
#perl: [ '5.34', '5.32', '5.16.3' ] | |
name: Perl ${{ matrix.perl }} on ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up perl | |
uses: shogo82148/actions-setup-perl@v1 | |
with: | |
perl-version: ${{ matrix.perl }} | |
install-modules-with: cpanm | |
install-modules-args: --with-develop --with-configure --force --no-test | |
enable-modules-cache: true | |
multi-thread: true | |
install-modules: | | |
JSON | |
Bio::Perl | |
Bio::Kmer | |
Bio::Tree::Statistics | |
Bio::Matrix::IO | |
Bio::Tree::DistanceFactory | |
- name: apt-get to prepare for cached perl packages | |
run: | | |
sudo apt-get update -y | |
sudo apt-get install -y libdb-dev sqlite3 libgd-dev libsqlite3-dev libberkeleydb-perl libcdb-file-perl quicktree mash | |
- name: cpanm installdeps --no-test --force | |
run: cpanm --installdeps . --no-test --force | |
- name: versions | |
run: | | |
mash --version | |
quicktree -v | |
sqlite3 --version | |
- run: perl -V | |
- name: perl modules checks | |
run: | | |
for i in Bio::Tree::Statistics threads Bio::Matrix::IO Bio::Tree::DistanceFactory; do perl -M$i -e 'print "checking module $i";'; done | |
- name: make test | |
run: perl Makefile.PL && make && make test |