mirror of
https://github.com/pyTooling/Actions.git
synced 2026-02-17 13:36:56 +08:00
CoverageCollection: use 'pyproject.toml' by default
This commit is contained in:
6
.github/workflows/CoverageCollection.yml
vendored
6
.github/workflows/CoverageCollection.yml
vendored
@@ -41,9 +41,9 @@ on:
|
|||||||
default: 'tests/unit'
|
default: 'tests/unit'
|
||||||
type: string
|
type: string
|
||||||
coverage_config:
|
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
|
required: false
|
||||||
default: ''
|
default: 'pyproject.toml'
|
||||||
type: string
|
type: string
|
||||||
artifact:
|
artifact:
|
||||||
description: 'Name of the coverage artifact.'
|
description: 'Name of the coverage artifact.'
|
||||||
@@ -87,7 +87,7 @@ jobs:
|
|||||||
coverageRC = "${{ inputs.coverage_config }}".strip()
|
coverageRC = "${{ inputs.coverage_config }}".strip()
|
||||||
|
|
||||||
# Read output paths from 'pyproject.toml' file
|
# Read output paths from 'pyproject.toml' file
|
||||||
if coverageRC == "":
|
if coverageRC == "pyproject.toml":
|
||||||
pyProjectFile = Path("pyproject.toml")
|
pyProjectFile = Path("pyproject.toml")
|
||||||
if pyProjectFile.exists():
|
if pyProjectFile.exists():
|
||||||
with pyProjectFile.open("rb") as file:
|
with pyProjectFile.open("rb") as file:
|
||||||
|
|||||||
Reference in New Issue
Block a user