From ef7bd4bf7b5a94f69f06595f3c06d5fdc183be70 Mon Sep 17 00:00:00 2001 From: Joel Berendzen Date: Wed, 10 Jan 2024 09:41:14 -0700 Subject: [PATCH] coverage run in home dir --- .github/workflows/tests.yml | 2 -- README.md | 9 +++++---- noxfile.py | 10 +++++----- 3 files changed, 10 insertions(+), 11 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index b616a85..679af09 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -16,8 +16,6 @@ jobs: - { python: "3.12", os: "ubuntu-latest", session: "safety" } - { python: "3.12", os: "ubuntu-latest", session: "mypy" } - { python: "3.12", os: "ubuntu-latest", session: "tests" } - - { python: "3.11", os: "ubuntu-latest", session: "tests" } - - { python: "3.10", os: "ubuntu-latest", session: "tests" } - { python: "3.9", os: "ubuntu-latest", session: "tests" } - { python: "3.12", os: "windows-latest", session: "tests" } - { python: "3.12", os: "macos-latest", session: "tests" } diff --git a/README.md b/README.md index 47c6e28..950aa1f 100644 --- a/README.md +++ b/README.md @@ -360,10 +360,11 @@ in order of descending size. ## Requirements -_Flardl_ is tested under python 3.12, on Linux, MacOS, and -Windows and under 3.9 thru 3.11 on Linux. Under the hood, -_flardl_ relies on [httpx](https://www.python-httpx.org/) and is supported -on whatever platforms that library works under, for both HTTP/1.1 +_Flardl_ is tested under the highest supported python version on +Linux, MacOS, and Windows and under the lowest supported python version +on Linux. Under the hood, _flardl_ relies on +[httpx](https://www.python-httpx.org/) and is supported +on whatever platforms that library works for both HTTP/1.1 and HTTP/2. ## Installation diff --git a/noxfile.py b/noxfile.py index 06a6e23..e04e562 100644 --- a/noxfile.py +++ b/noxfile.py @@ -78,11 +78,11 @@ def coverage(session: nox.Session) -> None: """Produce the coverage report.""" args = session.posargs or ["report"] session.run_always("pdm", "install", "-G", "coverage", external=True) - - if not session.posargs and any(Path().glob(".coverage.*")): - session.run("coverage", "combine") - session.run("pwd", external=True) - session.run("coverage", *args) + with session.chdir(session.invoked_from): + if not session.posargs and any(Path().glob(".coverage.*")): + session.run("coverage", "combine") + session.run("pwd", external=True) + session.run("coverage", *args) @nox.session(python=python_versions)