-
Notifications
You must be signed in to change notification settings - Fork 0
67 lines (58 loc) · 2.12 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: PhylUp build and tests
on:
push:
branches:
- main
- dev
jobs:
run_python:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.7'
architecture: 'x64'
# - uses: conda-incubator/setup-miniconda@v2
# with:
# installer-url: https://github.com/conda-forge/miniforge/releases/download/4.8.3-2/Miniforge-pypy3-4.8.3-2-Linux-x86_64.sh
# allow-softlinks: true
# show-channel-urls: true
# use-only-tar-bz2: true
#conda install -c bioconda blast
#- uses: mkandziora/PhylUp@dev
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest pytest-cov pytest-xdist codecov
pip install -r requirements.txt
python setup.py install
wget ftp://ftp.ncbi.nlm.nih.gov/blast/executables/blast+/2.9.0/ncbi-blast-2.9.0+-x64-linux.tar.gz
tar -xvf ncbi-blast-2.9.0+-x64-linux.tar.gz
cd ncbi-blast-2.9.0+/bin/
echo PATH="$PATH:$(pwd)" >> $GITHUB_PATH
cd ..
cd ..
mkdir PaPaRa
cd PaPaRa
wget https://cme.h-its.org/exelixis/resource/download/software/papara_nt-2.5-static_x86_64.tar.gz
gunzip -cd papara_nt-2.5-static_x86_64.tar.gz | (tar xvf - )
chmod +x papara_static_x86_64
echo PATH="$PATH:$(pwd)" >> $GITHUB_PATH
cd ..
- name: download data
run: |
wget 'https://ftp.ncbi.nlm.nih.gov/pub/taxonomy/taxdump.tar.gz'
gunzip -cd taxdump.tar.gz | (tar xvf - names.dmp nodes.dmp)
mv *.dmp ./data/
mkdir tests/output
mkdir tests/output/test_runs
- name: Test with pytest
run: |
pytest --cov=PhylUp tests/test_*
# - name: upload coverage
# run: |
# codecov
# curl -s https://codecov.io/bash | bash
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1