Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
prihoda committed Sep 20, 2021
1 parent ebe1524 commit c1267e8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 12 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,7 @@ jobs:
echo $CONDA/bin >> $GITHUB_PATH
- name: Install dependencies
run: |
conda create -y --prefix ./env -c bioconda hmmer prodigal
conda activate ./env
pip install . pytest pytest-mock
make env
- name: Test with pytest
run: |
conda activate ./env
make test
16 changes: 8 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
ENV_NAME := deepbgc-dev
SHELL := /bin/bash
CONDA_ACTIVATE = eval "$$(conda shell.bash hook)" && conda activate $(ENV_NAME)
.PHONY: install release dist test

install:
python setup.py install
pip install pytest pytest-mock hmmlearn twine
env:
conda create -n $(ENV_NAME) -c bioconda hmmer prodigal
$(CONDA_ACTIVATE); pip install . pytest pytest-mock hmmlearn

conda-env:
bioconda-install:
ifndef VERSION
$(error "Usage: make conda-env VERSION=0.1.9")
endif
Expand All @@ -31,10 +34,7 @@ dist:
python setup.py sdist bdist_wheel

test:
pytest test

pip-install:
pip install --upgrade deepbgc
$(CONDA_ACTIVATE); pytest test

local-test:
mkdir -p work
Expand Down

0 comments on commit c1267e8

Please sign in to comment.