~gotmax23/sourcehutx

sourcehut: noxfile: add covtest session v1 APPLIED

: 1
 noxfile: add covtest session

 1 files changed, 8 insertions(+), 0 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~gotmax23/sourcehutx/patches/44011/mbox | git am -3
Learn more about email & git

[PATCH sourcehut] noxfile: add covtest session Export this patch

---
 noxfile.py | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/noxfile.py b/noxfile.py
index 825400c..b8dcf62 100644
--- a/noxfile.py
+++ b/noxfile.py
@@ -86,6 +86,14 @@ def coverage(session: nox.Session):
    session.run("coverage", "report", "--fail-under=93")


@nox.session()
def covtest(session: nox.Session):
    posargs = (*session.posargs, "--cov=sourcehut")
    test_sessions = (f"test-{v}" for v in test.python)  # type: ignore[attr-defined]
    for target in (*test_sessions, "test_pydanticv1", "coverage"):
        session.notify(target, posargs)


@nox.session(venv_backend="none")
def lint(session: nox.Session):
    """
-- 
2.41.0
sourcehut/patches: FAILED in 10m30s

[noxfile: add covtest session][0] from [Maxwell G][1]

[0]: https://lists.sr.ht/~gotmax23/sourcehut/patches/43548
[1]: mailto:maxwell@gtmx.me

✓ #1040548 SUCCESS sourcehut/patches/main.yml                     https://builds.sr.ht/~gotmax23/job/1040548
✗ #1040549 FAILED  sourcehut/patches/mockbuild-epel9.yml.disabled https://builds.sr.ht/~gotmax23/job/1040549
✓ #1040550 SUCCESS sourcehut/patches/mockbuild.yml                https://builds.sr.ht/~gotmax23/job/1040550
Applied.