Skip to content

Commit 4cdfe4f

Browse files
committed
docker compose runs pytests
1 parent f8b02dd commit 4cdfe4f

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

docker-compose.yaml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,14 @@ services:
6060
- PYTHON_USER=dja
6161
- JUPYTER_PASSWORD=datajoint
6262
working_dir: /src
63-
command: |
64-
pip install -e ".[test]"
65-
pip show datajoint
66-
pytest -sv --cov-report term-missing --cov=datajoint tests
63+
volumes:
64+
- .:/src
65+
command:
66+
- sh
67+
- -c
68+
- |
69+
set -e
70+
pip install -e ".[test]"
71+
pip show datajoint
72+
pytest -sv --cov-report term-missing --cov=datajoint tests
6773

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@ Changelog = "https://github.com/datajoint/datajoint-python/blob/master/CHANGELOG
5858
dj = "datajoint.cli:cli"
5959
datajoint = "datajoint.cli:cli"
6060

61+
[tool.setuptools]
62+
packages = ["datajoint"]
63+
6164
[build-system]
6265
requires = ["setuptools >= 61.0"]
6366
build-backend = "setuptools.build_meta"

0 commit comments

Comments
 (0)