From 513341f3dcf6e3240c5a5419a0565769fe2ffc43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Luis=20Cano=20Rodr=C3=ADguez?= Date: Tue, 27 Jun 2023 16:27:51 +0200 Subject: [PATCH] Add debugging information for Windows tests (#2730) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Add debugging information for Windows tests Signed-off-by: Juan Luis Cano Rodríguez * Add verbosity to unit tests Signed-off-by: Juan Luis Cano Rodríguez * Lift version caps for psutil to use wheels on modern Python Signed-off-by: Juan Luis Cano Rodríguez --------- Signed-off-by: Juan Luis Cano Rodríguez --- .circleci/continue_config.yml | 9 ++++++--- features/windows_reqs.txt | 2 +- test_requirements.txt | 2 +- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/.circleci/continue_config.yml b/.circleci/continue_config.yml index bd3c364e95..cedab70234 100644 --- a/.circleci/continue_config.yml +++ b/.circleci/continue_config.yml @@ -163,9 +163,12 @@ commands: - run: name: Install GDAL, Fiona and pytables command: conda activate kedro_builder; conda install gdal fiona pytables -c conda-forge -y + - run: + name: Show pip information + command: conda activate kedro_builder; pip debug --verbose - run: name: Install all requirements - command: conda activate kedro_builder; pip install -r test_requirements.txt -U + command: conda activate kedro_builder; pip install -v -r test_requirements.txt -U - run: name: Print Python environment command: conda activate kedro_builder; make print-python-env @@ -245,14 +248,14 @@ jobs: steps: - run: name: Run unit tests in parallel - command: make test + command: PYTEST_ADDOPTS="-v" make test - when: condition: equal: [ "3.10", <> ] steps: - run: name: Run unit tests sequentially - command: pytest tests --cov-config pyproject.toml + command: pytest -v tests --cov-config pyproject.toml win_unit_tests: diff --git a/features/windows_reqs.txt b/features/windows_reqs.txt index 191c9e7293..c41bf77a4d 100644 --- a/features/windows_reqs.txt +++ b/features/windows_reqs.txt @@ -3,7 +3,7 @@ # everything, so just this subset will be enough for CI behave==1.2.6 pandas~=1.3 -psutil==5.8.0 +psutil~=5.8 requests~=2.20 toml~=0.10.1 PyYAML>=4.2, <7.0 diff --git a/test_requirements.txt b/test_requirements.txt index 4683509a8b..5c81ebdc89 100644 --- a/test_requirements.txt +++ b/test_requirements.txt @@ -40,7 +40,7 @@ pandas~=1.3 # 1.3 for read_xml/to_xml Pillow~=9.0 plotly>=4.8.0, <6.0 pre-commit>=2.9.2, <3.0 # The hook `mypy` requires pre-commit version 2.9.2. -psutil==5.8.0 +psutil~=5.8 pyarrow>=1.0, <7.0 pylint>=2.17.0, <3.0 pyproj~=3.0