mirror of
https://github.com/malmeloo/FindMy.py.git
synced 2026-04-17 21:53:57 +02:00
tests: Adapt for poetry
This commit is contained in:
2
.github/workflows/test.yml
vendored
2
.github/workflows/test.yml
vendored
@@ -25,4 +25,4 @@ jobs:
|
||||
- uses: wntrblm/nox@2024.04.15
|
||||
|
||||
- name: Run unit tests
|
||||
run: nox
|
||||
run: poetry run nox
|
||||
|
||||
@@ -4,7 +4,7 @@ from itertools import count
|
||||
from pathlib import Path
|
||||
from typing import Generator
|
||||
|
||||
import nox
|
||||
import nox_poetry
|
||||
import tomli
|
||||
from packaging.specifiers import SpecifierSet
|
||||
from packaging.version import Version
|
||||
@@ -35,7 +35,7 @@ def get_python_versions() -> Generator[str, None, None]:
|
||||
return
|
||||
|
||||
|
||||
@nox.session(python=list(get_python_versions()))
|
||||
def test(session: nox.Session) -> None:
|
||||
@nox_poetry.session(python=list(get_python_versions()))
|
||||
def test(session: nox_poetry.Session) -> None:
|
||||
"""Run unit tests."""
|
||||
session.run("pytest")
|
||||
|
||||
29
poetry.lock
generated
29
poetry.lock
generated
@@ -995,6 +995,22 @@ virtualenv = ">=20.14.1"
|
||||
tox-to-nox = ["jinja2", "tox"]
|
||||
uv = ["uv (>=0.1.6)"]
|
||||
|
||||
[[package]]
|
||||
name = "nox-poetry"
|
||||
version = "1.0.3"
|
||||
description = "nox-poetry"
|
||||
optional = false
|
||||
python-versions = ">=3.7,<4.0"
|
||||
files = [
|
||||
{file = "nox_poetry-1.0.3-py3-none-any.whl", hash = "sha256:a2fffeb70ae81840479e68287afe1c772bf376f70f1e92f99832a20b3c64d064"},
|
||||
{file = "nox_poetry-1.0.3.tar.gz", hash = "sha256:dc7ecbbd812a333a0c0b558f57e5b37f7c12926cddbcecaf2264957fd373824e"},
|
||||
]
|
||||
|
||||
[package.dependencies]
|
||||
nox = ">=2020.8.22"
|
||||
packaging = ">=20.9"
|
||||
tomlkit = ">=0.7"
|
||||
|
||||
[[package]]
|
||||
name = "packaging"
|
||||
version = "24.1"
|
||||
@@ -1515,6 +1531,17 @@ files = [
|
||||
{file = "tomli-2.0.1.tar.gz", hash = "sha256:de526c12914f0c550d15924c62d72abc48d6fe7364aa87328337a31007fe8a4f"},
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "tomlkit"
|
||||
version = "0.13.2"
|
||||
description = "Style preserving TOML library"
|
||||
optional = false
|
||||
python-versions = ">=3.8"
|
||||
files = [
|
||||
{file = "tomlkit-0.13.2-py3-none-any.whl", hash = "sha256:7a974427f6e119197f670fbbbeae7bef749a6c14e793db934baefc1b5f03efde"},
|
||||
{file = "tomlkit-0.13.2.tar.gz", hash = "sha256:fff5fe59a87295b278abd31bec92c15d9bc4a06885ab12bcea52c71119392e79"},
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "typing-extensions"
|
||||
version = "4.12.2"
|
||||
@@ -1902,4 +1929,4 @@ test = ["big-O", "importlib-resources", "jaraco.functools", "jaraco.itertools",
|
||||
[metadata]
|
||||
lock-version = "2.0"
|
||||
python-versions = ">=3.9,<3.13"
|
||||
content-hash = "cf83e5ed90b7d2c8a905221b890c914f921ef25340aacb54d8c6a9f042ae9fde"
|
||||
content-hash = "27690dec4a15030e8b75dfc752b57b65e496701c5f4cf0864c8b01735948bfad"
|
||||
|
||||
@@ -23,6 +23,7 @@ ruff = "0.5.6"
|
||||
nox = "^2024.4.15"
|
||||
pytest = "^8.3.2"
|
||||
tomli = "^2.0.1"
|
||||
nox-poetry = "^1.0.3"
|
||||
|
||||
[tool.pyright]
|
||||
venvPath = "."
|
||||
|
||||
Reference in New Issue
Block a user