From 974d62697cbd4f074b2b5ef8e3e1ee5dff43dbc6 Mon Sep 17 00:00:00 2001 From: jan iversen Date: Thu, 22 Feb 2024 18:53:30 +0100 Subject: [PATCH] Only run coverage in ubuntu / python 3.12 (#2049) --- .github/workflows/ci.yml | 9 ++++++++- pyproject.toml | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a2fe6b7e9..1c76b7063 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -101,9 +101,16 @@ jobs: ruff . - name: pytest + if: ${{ (matrix.os != 'ubuntu-latest') || (matrix.python != '3.12') }} run: | env - pytest --cov + pytest + + - name: pytest coverage + if: ${{ (matrix.os == 'ubuntu-latest') && (matrix.python == '3.12') }} + run: | + env + pytest --cov analyze: name: Analyze Python diff --git a/pyproject.toml b/pyproject.toml index 2cd2027c2..e19281977 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -235,7 +235,7 @@ exclude_also = [ "if __name__ == .__main__.:", ] skip_covered = true -fail_under = 70.0 +fail_under = 90.0 [tool.coverage.html] directory = "build/cov"