Skip to content

Commit

Permalink
coverage run in home dir
Browse files Browse the repository at this point in the history
joelb123 committed Jan 10, 2024
1 parent 58c71e5 commit ef7bd4b
Showing 3 changed files with 10 additions and 11 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -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" }
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -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
10 changes: 5 additions & 5 deletions noxfile.py
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit ef7bd4b

Please sign in to comment.