Skip to content

Commit

Permalink
Merge branch 'automatic-merge' into 'master'
Browse files Browse the repository at this point in the history
Speed up coverage for Python >= 3.12

See merge request it/e3-aws!31
  • Loading branch information
adanaja committed Dec 11, 2024
2 parents 10782db + bc49082 commit 95338b2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
6 changes: 4 additions & 2 deletions build_wheel.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def run(cmd: list[str], fail_ok: bool | None = None) -> Run:
:return: the Run instance
"""
logger.info(f"$ {' '.join(cmd)}")
p = Run(cmd, cwd=ROOT_DIR)
p = Run(cmd, cwd=str(ROOT_DIR))
if p.status != 0 and not fail_ok:
logger.error(p.out)
sys.exit(1)
Expand Down Expand Up @@ -91,7 +91,9 @@ def main() -> None:
run(["git", "fetch", "--unshallow", "--tags"], fail_ok=True)
# Describe the most recent tag
p = run(["git", "describe", "--tags"])
last_tag = p.out.strip()
output = p.out
assert output is not None
last_tag = output.strip()

# Format is v<major>.<minor>.<patch>(-<commits>)? with commits omitted if
# the current commit is also the one tagged
Expand Down
8 changes: 8 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,14 @@ deps =
codecov: codecov
extras = test

# Speed up coverage on Python >= 3.12
setenv =
# Set COVERAGE_CORE only for Python >= 3.12
COVERAGE_CORE=sysmon
py311: COVERAGE_CORE=
py310: COVERAGE_CORE=
py39: COVERAGE_CORE=

# Run testsuite with coverage when '-cov' and with multi-threading when '-xdist'
# is in the env name
commands=
Expand Down

0 comments on commit 95338b2

Please sign in to comment.