-
Notifications
You must be signed in to change notification settings - Fork 41
51 lines (50 loc) · 1.73 KB
/
conda.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
name: Linux bioconda
on:
workflow_dispatch:
schedule:
- cron: '15 3 * * *' # 3:15am everyday
repository_dispatch:
types: [linux-bioconda-test, install-test]
jobs:
install_and_test:
runs-on: ubuntu-latest
steps:
- name: When was this run
run: date
- name: configure conda
run: |
. $CONDA/bin/activate
conda config --add channels defaults
conda config --add channels bioconda
conda config --add channels conda-forge
- name: install AMRFinderPlus
run: |
. $CONDA/bin/activate
conda install --update-deps -c conda-forge -c bioconda -y ncbi-amrfinderplus
amrfinder --version
- name: download latest AMRFinderPlus database
run: |
source /usr/share/miniconda/bin/activate
echo CONDA_PREFIX = ${CONDA_PREFIX}
/usr/share/miniconda/bin/amrfinder --force_update
- name: Software and DB version
run: |
source /usr/share/miniconda/bin/activate
amrfinder --database_version
- name: download tests
run: |
BASE_URL=https://raw.githubusercontent.com/${GITHUB_REPOSITORY}/master
curl --silent -L \
-O ${BASE_URL}/test_dna.fa \
-O ${BASE_URL}/test_prot.fa \
-O ${BASE_URL}/test_prot.gff \
-O ${BASE_URL}/test_both.expected \
-O ${BASE_URL}/test_dna.expected \
-O ${BASE_URL}/test_dna_mut_all.expected \
-O ${BASE_URL}/test_prot.expected \
-O ${BASE_URL}/test_amrfinder.sh
- name: run tests
run: |
source /usr/share/miniconda/bin/activate
echo CONDA_PREFIX = $CONDA_PREFIX
bash ./test_amrfinder.sh path