Skip to content

Commit

Permalink
ci: fix poetry access to system site-packages
Browse files Browse the repository at this point in the history
  • Loading branch information
xen0n committed Dec 29, 2024
1 parent 663a632 commit 042464e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,6 @@ jobs:
./scripts/install-baseline-deps.sh
# Install poetry with access to the system-wide deps
pipx install --system-site-packages poetry
# also give the Poetry environment access to the system-wide deps
# should it want to create its own venv
export POETRY_VIRTUALENVS_OPTIONS_SYSTEM_SITE_PACKAGES=true
- name: Install Poetry
if: success() && !matrix.baseline
Expand All @@ -71,7 +68,9 @@ jobs:
run: poetry install --with=dev
- name: Install only the dev tools in the venv
if: success() && matrix.baseline
run: poetry install --only=dev
# we need to also give the Poetry environment access to the
# system-wide deps
run: POETRY_VIRTUALENVS_OPTIONS_SYSTEM_SITE_PACKAGES=true poetry install --only=dev

- name: Lint with ruff
run: poetry run ruff check
Expand Down

0 comments on commit 042464e

Please sign in to comment.