Skip to content

Commit

Permalink
Add Python 3.12 and 3.13 to test matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
mtkennerly committed Nov 12, 2024
1 parent 54d9d15 commit 2b3ac6d
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 4 deletions.
19 changes: 17 additions & 2 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,21 @@ jobs:
- '1.5.1'
- '1.6.1'
- '1.7.1'
- '1.8.1'
- '1.8.4'
experimental: [false]
unlocked: [false]
include:
- python-version: '3.11'
poetry-version: 'git+https://github.com/radoering/poetry.git@pep621-support'
experimental: true
- python-version: '3.12'
poetry-version: '1.8.4'
experimental: false
unlocked: true
- python-version: '3.13'
poetry-version: '1.8.4'
experimental: false
unlocked: true
steps:
- uses: actions/checkout@v4
with:
Expand All @@ -53,10 +62,16 @@ jobs:
- if: ${{ startsWith(matrix.poetry-version, 'git') }}
run: |
echo "USE_PEP621=1" >> $GITHUB_ENV
- if: ${{ matrix.unlocked }}
run: |
rm poetry.lock
- run: |
pip install pipx
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 2b3ac6d

Please sign in to comment.