From 9846c9e60c4f8d3b1edf29eaebbb2e220ee0af5c Mon Sep 17 00:00:00 2001 From: umarcor Date: Fri, 24 Dec 2021 16:31:47 +0100 Subject: [PATCH] CoverageCollection: use 'pyproject.toml' by default --- .github/workflows/CoverageCollection.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/CoverageCollection.yml b/.github/workflows/CoverageCollection.yml index d42621d..cfccc79 100644 --- a/.github/workflows/CoverageCollection.yml +++ b/.github/workflows/CoverageCollection.yml @@ -41,9 +41,9 @@ on: default: 'tests/unit' type: string coverage_config: - description: 'Path to the .coveragerc file. Use pyproject.toml if empty.' + description: 'Path to the .coveragerc file. Use pyproject.toml by default.' required: false - default: '' + default: 'pyproject.toml' type: string artifact: description: 'Name of the coverage artifact.' @@ -87,7 +87,7 @@ jobs: coverageRC = "${{ inputs.coverage_config }}".strip() # Read output paths from 'pyproject.toml' file - if coverageRC == "": + if coverageRC == "pyproject.toml": pyProjectFile = Path("pyproject.toml") if pyProjectFile.exists(): with pyProjectFile.open("rb") as file: