From ebf3695f2c641070ecec517e4ae316dfc3e807be 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 when running tests. --- tox.ini | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/tox.ini b/tox.ini index eaf205d5..7b2db7b5 100644 --- a/tox.ini +++ b/tox.ini @@ -1,13 +1,24 @@ # 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 = + pytest {posargs} +extras = + all +package = + editable