From d7c765ba7919d0fa9f411b3f616bcb4bbee4a09a Mon Sep 17 00:00:00 2001 From: Patrick Lehmann Date: Fri, 24 Dec 2021 13:04:31 +0100 Subject: [PATCH] Fixed how to access complex nested key-value pairs. --- .github/workflows/CoverageCollection.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/CoverageCollection.yml b/.github/workflows/CoverageCollection.yml index 71dabf5..fa72e8c 100644 --- a/.github/workflows/CoverageCollection.yml +++ b/.github/workflows/CoverageCollection.yml @@ -91,8 +91,8 @@ jobs: with pyProjectFile.open("rb") as file: pyProjectSettings = tomli_load(file) - htmlDirectory = pyProjectSettings["tool.coverage.html"]["directory"] - xmlFile = pyProjectSettings["tool.coverage.xml"]["output"] + htmlDirectory = pyProjectSettings["tool"]["coverage"]["html"]["directory"] + xmlFile = pyProjectSettings["tool"]["coverage"]["xml"]["output"] else: print(f"File '{pyProjectFile}' not found and no ' .coveragerc' file specified.")