Skip to content

Release v1.6.0

Release v1.6.0 #426

Workflow file for this run

on:
- push
- pull_request
name: Main
jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.10'
- run: |
pip install poetry==1.8.4
poetry install
poetry run pre-commit run --all-files --show-diff-on-failure
test-poetry-v1:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version:
# As of 2024-06-26, Poetry has started failing to install on 3.7:
# `TypeError: Expected maxsize to be an integer or None`
- '3.8'
- '3.9'
- '3.10'
- '3.11'
poetry-version:
- '1.2.2'
- '1.3.2'
- '1.4.2'
- '1.5.1'
- '1.6.1'
- '1.7.1'
- '1.8.4'
unlocked:
- false
include:
- python-version: '3.12'
poetry-version: '1.8.4'
unlocked: true
- python-version: '3.13'
poetry-version: '1.8.4'
unlocked: true
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- if: ${{ matrix.unlocked }}
run: |
rm poetry.lock
- run: |
pip install pipx
pipx install poetry==${{ matrix.poetry-version }}
pipx install invoke
# 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 poetry==${{ matrix.poetry-version }}
invoke test --pipx
test-poetry-v2:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version:
- '3.9'
- '3.10'
- '3.11'
poetry-version:
- '2.0.0'
unlocked:
- false
include:
- python-version: '3.12'
poetry-version: '2.0.0'
unlocked: true
- python-version: '3.13'
poetry-version: '2.0.0'
unlocked: true
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- run: |
echo "USE_PEP621=1" >> $GITHUB_ENV
- if: ${{ matrix.unlocked }}
run: |
rm poetry.lock
- run: |
pip install pipx
pipx install poetry==${{ matrix.poetry-version }}
pipx install invoke
# 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 poetry==${{ matrix.poetry-version }}
invoke test --pipx
test-poetry-dev:
runs-on: ubuntu-latest
continue-on-error: true
strategy:
fail-fast: false
matrix:
python-version:
- '3.11'
poetry-version:
- 'git+https://github.com/python-poetry/poetry.git@main'
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- run: |
echo "USE_PEP621=1" >> $GITHUB_ENV
- run: |
pip install pipx
pipx install ${{ matrix.poetry-version }}
pipx install invoke
poetry install
poetry run pip install ${{ matrix.poetry-version }}
invoke test --pipx