From ddc33dc74a38e440f6b173c9bafa9af36678978f Mon Sep 17 00:00:00 2001 From: Stefan Holderbach Date: Tue, 7 Feb 2023 23:14:17 +0100 Subject: [PATCH] Fix imported virtualenv testsuite (#8001) # Description Patch `pyproject.toml` to ignore the checking of coverage level as we only run part of the test suite affecting nushell. --- .github/workflows/ci.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 33c29851f0..b2b93da135 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -119,7 +119,12 @@ jobs: shell: bash - name: Test Nushell in virtualenv - run: cd virtualenv && tox -e ${{ matrix.py }} -- -k nushell + run: | + cd virtualenv + # We need to disable failing on coverage levels. + nu -c "open pyproject.toml | upsert tool.coverage.report.fail_under 1 | save patchproject.toml" + mv patchproject.toml pyproject.toml + tox -e ${{ matrix.py }} -- -k nushell shell: bash # Build+test plugins on their own, without the rest of Nu. This helps with CI parallelization and