Skip to content

Commit

Permalink
Revert pip upgrade (#334)
Browse files Browse the repository at this point in the history
  • Loading branch information
cidrblock authored Jun 14, 2024
1 parent a0416f2 commit a83a006
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 10 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ line-length = 100

[tool.coverage.report]
exclude_also = ["if TYPE_CHECKING:", "pragma: no cover"]
fail_under = 82
fail_under = 81
ignore_errors = true
show_missing = true
skip_covered = true
Expand Down
9 changes: 1 addition & 8 deletions src/tox_ansible/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ def conf_commands_for_sanity(
return commands


def conf_commands_pre( # noqa: C901
def conf_commands_pre(
env_conf: EnvConfigSet,
c_name: str,
c_namespace: str,
Expand All @@ -473,13 +473,6 @@ def conf_commands_pre( # noqa: C901
galaxy_build_dir = f"{envtmpdir}/collection_build"
end_group = "echo ::endgroup::"

if in_action():
group = "echo ::group::Ensure pip is up to date"
commands.append(group)
commands.append("python -m ensurepip --upgrade")
if in_action():
commands.append(end_group)

if in_action():
group = "echo ::group::Make the galaxy build dir"
commands.append(group)
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/test_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,5 @@ def test_commands_pre(monkeypatch: pytest.MonkeyPatch, tmp_path: Path) -> None:
)

result = conf_commands_pre(env_conf=conf, c_name="test", c_namespace="test")
number_commands = 15
number_commands = 12
assert len(result) == number_commands, result

0 comments on commit a83a006

Please sign in to comment.