Skip to content

Commit

Permalink
Allow installing packages system-wide in CI
Browse files Browse the repository at this point in the history
I started seeing CI runs fail with "error: externally-managed-environment".

While in general it’s bad practice to install packages system-wide as this may interfere with system-managed packages, this is much less problematic in the one-off runners in CI.

As a workaround, I’ve disabled the warning when installing dependencies in CI.
  • Loading branch information
tillprochaska committed Sep 26, 2024
1 parent 11ad8d1 commit 2244c29
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ jobs:

- name: Install development dependencies
run: make dev
env:
PIP_BREAK_SYSTEM_PACKAGES: 1

- name: Check code formatting
run: make format-check
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ jobs:

- name: Install development dependencies
run: make dev
env:
PIP_BREAK_SYSTEM_PACKAGES: 1

- name: Check code formatting
run: make format-check
Expand Down

0 comments on commit 2244c29

Please sign in to comment.