Skip to content
This repository was archived by the owner on May 7, 2026. It is now read-only.
32 changes: 32 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,15 @@ jobs:
with:
poetry-version: ${{ env.POETRY_VERSION }}

- name: Patch Poetry's internal virtualenv setuptools
run: $HOME/.local/share/pypoetry/venv/bin/python -m pip install "setuptools<71.0.0"

- name: Install dependencies
run: poetry install --no-root

- name: Patch project virtualenv setuptools
run: $(poetry env info --path)/bin/python -m pip install "setuptools<71.0.0"

- name: Run tox
run: poetry run tox -e flake8

Expand Down Expand Up @@ -85,9 +91,15 @@ jobs:
with:
poetry-version: ${{ env.POETRY_VERSION }}

- name: Patch Poetry's internal virtualenv setuptools
run: $HOME/.local/share/pypoetry/venv/bin/python -m pip install "setuptools<71.0.0"

- name: Install dependencies
run: poetry install --no-root

- name: Patch project virtualenv setuptools
run: $(poetry env info --path)/bin/python -m pip install "setuptools<71.0.0"

- name: Run tox
run: poetry run tox -e mypy-${{ matrix.toxenv-factor }}

Expand Down Expand Up @@ -125,6 +137,13 @@ jobs:
- name: Create reports directory
run: mkdir ${{ env.REPORTS_DIR }}

- name: Install gettext (macOS)
if: runner.os == 'macOS'
run: |
brew install gettext
sudo mkdir -p /usr/local/opt
sudo ln -sfn $(brew --prefix gettext) /usr/local/opt/gettext

- name: Set up Python
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
with:
Expand All @@ -136,9 +155,22 @@ jobs:
with:
poetry-version: ${{ env.POETRY_VERSION }}

- name: Patch Poetry's internal virtualenv setuptools (Unix)
if: runner.os != 'Windows'
run: $HOME/.local/share/pypoetry/venv/bin/python -m pip install "setuptools<71.0.0"

- name: Patch Poetry's internal virtualenv setuptools (Windows)
if: runner.os == 'Windows'
shell: pwsh
run: |
& "$env:APPDATA\pypoetry\venv\Scripts\python.exe" -m pip install "setuptools<71.0.0"

- name: Install dependencies
run: poetry install --no-root

- name: Patch project virtualenv setuptools
run: poetry run python -m pip install "setuptools<71.0.0"

- name: Ensure build successful
run: poetry build

Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ jobs:
with:
poetry-version: ${{ env.POETRY_VERSION }}

- name: Patch Poetry's internal virtualenv setuptools
run: $(poetry env info --path)/bin/pip install "setuptools<71.0.0"

- name: Install dependencies
run: poetry install --no-root

Expand Down
Loading