Skip to content

Commit 8bed5d3

Browse files
authored
ci: avoid pdm broken on PyPy
1 parent e7fb170 commit 8bed5d3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

noxfile.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ def tests(session: nox.Session, backend: str, vcs: bool, docs: Docs) -> None:
264264
@nox.parametrize("vcs", [False, True], ids=["novcs", "vcs"])
265265
@nox.parametrize("backend", ("poetry", "pdm", "hatch"), ids=("poetry", "pdm", "hatch"))
266266
def native(session: nox.Session, backend: str, vcs: bool, docs: Docs) -> None:
267-
session.install("cookiecutter", backend)
267+
session.install("cookiecutter", "pdm!=2.26.3" if backend == "pdm" else backend)
268268

269269
tmp_dir = session.create_tmp()
270270
session.cd(tmp_dir)
@@ -277,7 +277,7 @@ def native(session: nox.Session, backend: str, vcs: bool, docs: Docs) -> None:
277277
session.run(backend, "sync", env={"VIRTUAL_ENV": None})
278278
session.run(backend, "run", "pytest", env={"VIRTUAL_ENV": None})
279279
else:
280-
session.run(backend, "install")
280+
session.run(backend, "install", env={"PDM_IGNORE_ACTIVE_VENV": "1"})
281281
session.run(backend, "run", "pytest")
282282

283283

0 commit comments

Comments
 (0)