Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] bootstrap python tests #665

Closed
wants to merge 7 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions pyscriptjs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,15 @@ tag := latest
git_hash ?= $(shell git log -1 --pretty=format:%h)

base_dir ?= $(shell git rev-parse --show-toplevel)
src_dir ?= $(base_dir)/src
src_dir ?= $(base_dir)/pyscriptjs/src
examples ?= ../$(base_dir)/examples
app_dir ?= $(shell git rev-parse --show-prefix)

CONDA_EXE := conda
CONDA_ENV ?= ./env
CONDA_ENV ?= $(base_dir)/pyscriptjs/env
env := $(CONDA_ENV)
PYTHON_EXE := $(CONDA_ENV)/bin/python
PYTEST_EXE := $(CONDA_ENV)/bin/pytest
conda_run := $(CONDA_EXE) run -p $(env)
GOOD_NODE_VER := 14
GOOD_NPM_VER := 6
Expand Down Expand Up @@ -68,7 +70,7 @@ examples:
test:
make examples
npm run build
$(conda_run) pytest -vv $(ARGS) tests/ --log-cli-level=warning
$(conda_run) pytest -vv $(ARGS) tests/integration --log-cli-level=warning

test-local:
make examples
Expand All @@ -77,7 +79,7 @@ test-local:

test-py:
@echo "Tests are coming :( this is a placeholder and it's meant to fail!"
$(conda_run) pytest -vv $(ARGS) tests/ --log-cli-level=warning
$(PYTEST_EXE) -vv $(ARGS) $(base_dir)/pyscriptjs/tests/py-unit --log-cli-level=warning

test-ts:
@echo "Tests are coming :( this is a placeholder and it's meant to fail!"
Expand Down
Loading