forked from deeptools/pyGenomeTracks
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest_locally.sh
More file actions
29 lines (26 loc) · 1 KB
/
Copy pathtest_locally.sh
File metadata and controls
29 lines (26 loc) · 1 KB
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
#!/bin/bash
source $(dirname $(dirname $(which conda)))/etc/profile.d/conda.sh
for TRAVIS_PYTHON_VERSION in 3.7 3.8 3.9; do
for dir in $(find . -name "__pycache__"); do
rm -r $dir
done
if [ -e build ]; then
rm -r build
fi
conda create -n pgt_test_${TRAVIS_PYTHON_VERSION} --yes -c bioconda -c conda-forge python=$TRAVIS_PYTHON_VERSION mamba
conda activate pgt_test_${TRAVIS_PYTHON_VERSION}
mamba install --yes -c defaults -c bioconda -c conda-forge --file requirements_CI.txt
python setup.py install
coverage run -m py.test
coverage html
coverage-badge -f -o docs/coverage.svg
conda deactivate
done
TRAVIS_PYTHON_VERSION=3.10
conda create -n pgt_test_${TRAVIS_PYTHON_VERSION} --yes -c bioconda -c conda-forge python=$TRAVIS_PYTHON_VERSION
conda activate pgt_test_${TRAVIS_PYTHON_VERSION}
conda install --yes -c conda-forge -c bioconda bedtools
pip install -r requirements_CI.txt
python setup.py install
py.test pygenometracks --doctest-modules
conda deactivate