Skip to content

Commit

Permalink
test: remove courtney
Browse files Browse the repository at this point in the history
  • Loading branch information
Zxilly committed Feb 14, 2025
1 parent 23fe106 commit 4377f82
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 29 deletions.
6 changes: 0 additions & 6 deletions .github/actions/setup-script/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,6 @@ runs:
run: |
poetry install
- name: Install Go tools
shell: bash
if: ${{ inputs.coverage == 'true' }}
run: |
go install github.com/ZxillyFork/courtney@9f98af51b9fb040946fa7c035cd5a641c5e524f2
- name: Cache test binaries
if: ${{ inputs.cache != '' }}
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
Expand Down
23 changes: 0 additions & 23 deletions scripts/tool/merge.py
Original file line number Diff line number Diff line change
@@ -1,31 +1,10 @@
import os
import shutil
import subprocess
import tempfile

from .utils import dir_is_empty, get_project_root, log, get_covdata_unit_dir, get_covdata_integration_dir, require_go


def require_courtney():
courtney = shutil.which("courtney")
if courtney is None:
raise Exception("Courtney is not installed. Please install Courtney and try again.")
return courtney


def enhance_coverage(f: str, out: str):
subprocess.check_call(
[
require_courtney(),
"-l",
f,
"-o",
out,
],
cwd=get_project_root(),
)


def merge_covdata():
log("Merging coverage data...")

Expand All @@ -50,8 +29,6 @@ def merge_covdata_dir(d: str, output: str):
cwd=get_project_root(),
)
log(f"Merged coverage data from {d}.")
enhance_coverage(tmp.name, output)
log(f"Enhanced coverage data from {d}.")

if not os.path.exists(output):
raise Exception("Failed to merge coverage data.")
Expand Down

0 comments on commit 4377f82

Please sign in to comment.