Skip to content

bug fix

bug fix #779

Workflow file for this run

name: unittest
on:
- push
- pull_request
jobs:
build:
runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
python-version: [3.8]
# TODO: We probably should switch to using the Docker version.
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
bash miniconda.sh -b -p $HOME/miniconda || true
export PATH="$HOME/miniconda/bin:$PATH"
conda config --set always_yes yes --set changeps1 no
conda update -q conda
conda create -n usi -c conda-forge -c bioconda -c defaults flake8 \
flask flex-swagger gunicorn locust lxml matplotlib numba numpy \
pillow pytest pytest-xdist pyzbar qrcode rdkit requests \
requests-cache scipy spectrum_utils werkzeug zbar
apt-get update -y && apt-get install -y git-core
source activate usi
pip install "git+https://github.com/berlinguyinca/spectra-hash.git#subdirectory=python"
pip install celery celery-once joblib
echo "source activate usi" > ~/.bashrc
- name: Run unit and integration tests
run: |
export PATH="$HOME/miniconda/bin:$PATH"
export PYTHONPATH=${PYTHONPATH}:.
source ~/.bashrc
pytest -n 4 ./test/