Skip to content

Commit 46054e5

Browse files
committed
restore full test
1 parent dbab148 commit 46054e5

File tree

1 file changed

+129
-1
lines changed

1 file changed

+129
-1
lines changed

.github/workflows/unittests.yml

Lines changed: 129 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,4 +69,132 @@ jobs:
6969
spades skesa=2.4 python=3.7 perl-cg-pipeline perl-gd blast prodigal \
7070
perl-app-cpanminus perl-statistics-descriptive perl-config-simple \
7171
perl-file-slurp perl-text-levenshtein perl-moo perl-list-moreutils kma=1.4 \
72-
multiqc fastqc bowtie2 perl-gd perl-gdgraph salmid staramr kalamari taxonkit
72+
multiqc fastqc bowtie2 perl-gd perl-gdgraph salmid staramr kalamari taxonkit
73+
- name: check installation
74+
shell: bash -el {0}
75+
run: |
76+
perl -v
77+
echo
78+
python -V
79+
echo
80+
which perl
81+
which python
82+
echo
83+
which kraken
84+
kraken --version
85+
which kraken-build
86+
echo
87+
echo conda
88+
conda info
89+
echo
90+
ls -l ~/conda_pkgs_dir /usr/share/miniconda || true
91+
- name: add some paths to PATH
92+
run: |
93+
echo "$GITHUB_WORKSPACE/CG-Pipeline/scripts" >> $GITHUB_PATH
94+
echo
95+
cat $GITHUB_PATH
96+
- name: checkout my repo
97+
uses: actions/checkout@v4
98+
with:
99+
path: SneakerNet
100+
- name: checkout CG-Pipeline
101+
uses: actions/checkout@v4
102+
with:
103+
repository: lskatz/CG-Pipeline
104+
path: CG-Pipeline
105+
ref: v0.5
106+
- name: apt-get install
107+
run: |
108+
sudo apt-get update
109+
sudo apt-get -y install ca-certificates
110+
sudo apt-get -y install build-essential sendmail tree
111+
- name: Cache Kraken DB
112+
id: cache-kraken
113+
uses: actions/cache@v4
114+
with:
115+
path: |
116+
/home/runner/conda_pkgs_dir/my-env/share/kalamari-*
117+
key: kraken-${{ runner.os }}--${{ runner.arch }}--${{ steps.get-date.outputs.today }}-perl_v${{ matrix.perl }}--${{env.CACHE_NUMBER}}
118+
env:
119+
CACHE_NUMBER: 0
120+
- name: make very simple kraken database
121+
if: steps.cache-kraken.outputs.cache-hit != 'true'
122+
shell: bash -el {0}
123+
run: |
124+
which downloadKalamari.sh
125+
KALAMARI_DEBUG=1 downloadKalamari.sh
126+
echo "Running buildTaxonomy.sh"
127+
buildTaxonomy.sh
128+
echo "Running filterTaxonomy.sh"
129+
bash -x filterTaxonomy.sh
130+
echo
131+
tree $(dirname $(which downloadKalamari.sh))/../share/kalamari-*
132+
echo
133+
buildKraken1.sh || echo "ERROR building Kraken1 database with exit code $?"
134+
- name: Dumper INC
135+
shell: bash -el {0}
136+
run: perl -MData::Dumper -e 'print Dumper \@INC'
137+
- name: tree pwd
138+
run: tree $(pwd)
139+
- name: tree home
140+
run: tree $HOME
141+
- name: tree GITHUB_WORKSPACE
142+
run: tree $GITHUB_WORKSPACE
143+
- name: tree -L 3 -d GITHUB_WORKSPACE
144+
run: tree -L 3 -d $GITHUB_WORKSPACE
145+
- name: env
146+
shell: bash -el {0}
147+
run: env
148+
- name: perl-check-dependencies
149+
shell: bash -el {0}
150+
run: |
151+
cd $GITHUB_WORKSPACE/SneakerNet
152+
perl Makefile.PL
153+
make
154+
#cpanm --installdeps . -l $HOME/perl5 --verbose --notest --force
155+
#perl -MData::Dumper -MStatistics::Descriptive -MConfig::Simple -MFile::Slurp -MBio::Kmer -MBio::SeqIO -MText::Fuzzy -MEmail::Stuffer -MBio::FeatureIO -MMoo -MList::MoreUtils -MJSON -e 'print Dumper \%INC'
156+
make
157+
echo "DEBUG: PERL5LIB: $PERL5LIB"
158+
- name: check-SneakerNet-repo
159+
shell: bash -el {0}
160+
run: |
161+
#eval $(perl -I $HOME/perl5/lib/perl5/ -Mlocal::lib)
162+
cd $GITHUB_WORKSPACE/SneakerNet
163+
cat MYMETA.json
164+
echo;env;echo
165+
ls -lhS t/M00123-18-001-test/
166+
md5sum t/M00123-18-001-test/*.fastq.gz
167+
for i in t/M00123-18-001-test/*.fastq.gz; do echo -ne "$i\t"; zcat $i | tail -n 1; done;
168+
echo
169+
echo "PATH broken up:"
170+
echo "$PATH" | tr ":" "\n"
171+
echo
172+
echo "GITHUB_ENV: $GITHUB_ENV"
173+
cat $GITHUB_ENV
174+
echo "GITHUB_PATH: $GITHUB_PATH"
175+
cat $GITHUB_PATH
176+
echo "Which flash:"
177+
which flash
178+
echo
179+
echo "Running t/00_env.t ..."
180+
perl t/00_env.t
181+
for i in t/M00123-18-001-test/*.fastq.gz; do echo -ne "$i\t"; zcat $i | tail -n 1; done;
182+
- id: prove-lv-t
183+
name: prove-lv-t
184+
shell: bash -el {0}
185+
run: |
186+
mkdir -v $GITHUB_WORKSPACE/tmp
187+
export TMPDIR=$GITHUB_WORKSPACE/tmp
188+
cd $GITHUB_WORKSPACE/SneakerNet
189+
#sed -i 's+/opt/kraken/full-20140723+/kraken-database+g' config/settings.conf
190+
sed -i '/KRAKEN_DEFAULT_DB/d' config/settings.conf
191+
condabin=$(dirname $(which downloadKalamari.sh))
192+
kalamari_ver=$(downloadKalamari.pl --version)
193+
kraken_dir="$condabin/../share/kalamari-$kalamari_ver/kalamari-kraken"
194+
echo $kraken_dir
195+
ls -lh $kraken_dir
196+
echo "KRAKEN_DEFAULT_DB $kraken_dir" >> config/settings.conf
197+
make
198+
make test
199+
200+

0 commit comments

Comments
 (0)