From adeb4c9d1deaa24cddd9d8638ace6e7a31eabea9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tibor=20=C5=A0imko?= Date: Thu, 22 Aug 2024 11:44:10 +0200 Subject: [PATCH] ci(tox): fix collecting code coverage information (#470) Fixes `tox` configuration with respect to installing all optional package dependencies that are necessary for running various tests. Fixes `tox` collecting of code coverage information by forcing editable mode also in the test running instructions. --- tox.ini | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/tox.ini b/tox.ini index eaf205d5..c9e24f5a 100644 --- a/tox.ini +++ b/tox.ini @@ -1,13 +1,23 @@ # This file is part of REANA. -# Copyright (C) 2022, 2023 CERN. +# Copyright (C) 2022, 2023, 2024 CERN. # # REANA is free software; you can redistribute it and/or modify it # under the terms of the MIT License; see LICENSE file for more details. [tox] -envlist = py38, py39, py310, py311, py312 +envlist = + py38 + py39 + py310 + py311 + py312 [testenv] -deps = pytest - pytest-cov -commands = pytest {posargs} +deps = + pytest + pytest-cov +commands = + pip install -e .[all] + pytest {posargs} +package = + editable