From 4cbe458c81bff6c0cf6a1e12aa9783f429773aad Mon Sep 17 00:00:00 2001 From: Joseph Lemaitre Date: Wed, 15 Nov 2023 10:27:19 +0100 Subject: [PATCH] attempt to fix ci and #135 --- .github/workflows/ci.yml | 2 +- flepimop/gempyor_pkg/setup.cfg | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 486f3f4db..193943db9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -30,7 +30,7 @@ jobs: run: | source /var/python/3.10/virtualenv/bin/activate python -m pip install --upgrade pip - python -m pip install flepimop/gempyor_pkg/ + python -m pip install "flepimop/gempyor_pkg[test]" shell: bash - name: Install local R packages run: Rscript build/local_install.R diff --git a/flepimop/gempyor_pkg/setup.cfg b/flepimop/gempyor_pkg/setup.cfg index ce7fd7f1b..1ad3526b2 100644 --- a/flepimop/gempyor_pkg/setup.cfg +++ b/flepimop/gempyor_pkg/setup.cfg @@ -31,10 +31,17 @@ install_requires = pyarrow sympy dask - pytest scipy graphviz +# see https://stackoverflow.com/questions/58826164/dependencies-requirements-for-setting-up-testing-and-installing-a-python-lib +# installed for pip install -e ".[test]" +[options.extras_require] +test = + pytest + mock + + [options.entry_points] console_scripts = gempyor-outcomes = gempyor.simulate_outcome:simulate