Closed tngTUDOR closed 2 years ago
Current testing would yield a bw2 environment. For example with miniconda3:
git clone git@github.com/brightway-lca/brightway2-calc.git
cd brightway2-calc
docker run --rm -it \
-v`pwd`:/code \
continuumio/miniconda3
inside the container:
cd /code # to be in the brightway2-calc directory
conda install -c conda-forge -c cmutel --file requirements-test.txt # install the deps
.... # a lot of info from conda
conda list | egrep "bw2"
bw2analyzer 0.9.4 py_1 cmutel
bw2calc 1.8.1 py_2 cmutel
bw2data 0.4.1 py_2 cmutel
bw2io 0.8.6 py_1 cmutel
bw2parameters 0.7 py_0 cmutel
Edit: there is no error when running the tests, but we are testing with bw2calc 1.8.1:
pytest
============================================================================================== test session starts ===============================================================================================
platform linux -- Python 3.10.4, pytest-7.1.2, pluggy-1.0.0
rootdir: /code, configfile: pytest.ini
plugins: cov-3.0.0
collected 83 items
tests/dict_man.py ..................... [ 25%]
tests/lca.py ................................................... [ 86%]
tests/svdm.py ........ [ 96%]
tests/utils.py ... [100%]
...
Current requirements-test.txt includes brightway2:
The azure-pipelines install testing deps by hand:
(for ubuntu 20.04 )
this mix ( ;) ), from the master branch of brightway2-calc will lead to testing using other brightway2 packages that might not be suited for brightway25 environment.