Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
mtkennerly committed Nov 12, 2024
1 parent 4265c7b commit 15af0f6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,5 +70,8 @@ jobs:
pipx install ${{ startsWith(matrix.poetry-version, 'git') && matrix.poetry-version || format('poetry=={0}', matrix.poetry-version) }}
pipx install invoke
poetry install --extras plugin
# We could use `poetry install --extras plugin`,
# but Poetry may decide to install a different version than `matrix.poetry-version`.
poetry install
poetry run pip install ${{ startsWith(matrix.poetry-version, 'git') && matrix.poetry-version || format('poetry=={0}', matrix.poetry-version) }}
invoke test --pipx
4 changes: 2 additions & 2 deletions tests/test_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@ def install_plugin(artifact: str) -> None:
pipx = os.environ.get("POETRY_DYNAMIC_VERSIONING_TEST_INSTALLATION") == "pipx"

if pipx:
run(f'pipx inject poetry "{artifact}[plugin]"')
run(f'pipx inject poetry "{artifact}"')
else:
run(f'poetry self add "{artifact}[plugin]"')
run(f'poetry self add "{artifact}"')


def uninstall_plugin() -> None:
Expand Down

0 comments on commit 15af0f6

Please sign in to comment.