From 7ead25a948857209233eb5b1fd397a86142d16cf Mon Sep 17 00:00:00 2001 From: Martin H Karrin Date: Sat, 29 Aug 2026 14:06:16 +0200 Subject: [PATCH] Remove local pytest artifacts after make test. Keep coverage.xml and junit.xml for Codecov CI, but drop them plus .coverage after a local test run so they do not linger in the working tree. Co-authored-by: Cursor --- Makefile | 2 +- make.ps1 | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index e11b6544..3d5d4c96 100644 --- a/Makefile +++ b/Makefile @@ -25,7 +25,7 @@ update: uv sync --active --locked --extra dev --extra docs test: - pytest + pytest; status=$$?; rm -f coverage.xml junit.xml .coverage; exit $$status lint: ruff check . --fix --exit-non-zero-on-fix diff --git a/make.ps1 b/make.ps1 index 020d284c..55584d2b 100644 --- a/make.ps1 +++ b/make.ps1 @@ -111,6 +111,9 @@ switch ($task) { "test" { pytest + $exitCode = $LASTEXITCODE + Remove-Item -Force -ErrorAction SilentlyContinue coverage.xml, junit.xml, .coverage + if ($exitCode -ne 0) { exit $exitCode } } "lint" {