Skip to content

Commit

Permalink
Pin test requirements.
Browse files Browse the repository at this point in the history
  • Loading branch information
Julian committed Feb 20, 2023
1 parent 6dd62bb commit b4f015b
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 4 deletions.
6 changes: 2 additions & 4 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,12 @@ def _session(fn):

@session(python=["3.8", "3.9", "3.10", "3.11", "pypy3"])
def tests(session):
dependencies = ["pytest", ROOT]
session.install("-r", ROOT / "test-requirements.txt")
if session.posargs == ["coverage"]:
dependencies.append("coverage[toml]")
session.install(*dependencies)
session.install("coverage[toml]")
session.run("coverage", "run", "-m", "pytest")
session.run("coverage", "report")
else:
session.install(*dependencies)
session.run("pytest", *session.posargs, REFERENCING)


Expand Down
2 changes: 2 additions & 0 deletions test-requirements.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
file:.#egg=referencing
pytest
22 changes: 22 additions & 0 deletions test-requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#
# This file is autogenerated by pip-compile with Python 3.11
# by the following command:
#
# pip-compile --resolver=backtracking test-requirements.in
#
attrs==22.2.0
# via
# pytest
# referencing
iniconfig==2.0.0
# via pytest
packaging==23.0
# via pytest
pluggy==1.0.0
# via pytest
pyrsistent==0.19.3
# via referencing
pytest==7.2.1
# via -r test-requirements.in
file:.#egg=referencing
# via -r test-requirements.in

0 comments on commit b4f015b

Please sign in to comment.