From f16c6806fd15a24cc536130ea99c094166962d24 Mon Sep 17 00:00:00 2001 From: Daniel Mach Date: Tue, 14 Feb 2023 14:39:33 +0100 Subject: [PATCH] GHA: Enable global.break-system-packages option for pip --- .github/workflows/build-install.yaml | 1 + .github/workflows/linters.yaml | 1 + .github/workflows/tests.yaml | 1 + 3 files changed, 3 insertions(+) diff --git a/.github/workflows/build-install.yaml b/.github/workflows/build-install.yaml index 59b2f7b9..9a14dbf4 100644 --- a/.github/workflows/build-install.yaml +++ b/.github/workflows/build-install.yaml @@ -111,6 +111,7 @@ jobs: - name: 'Install osc from pip' run: | + pip config set global.break-system-packages 1 pip3 install . - name: 'Run installed osc' diff --git a/.github/workflows/linters.yaml b/.github/workflows/linters.yaml index 4afc35a5..64b6084b 100644 --- a/.github/workflows/linters.yaml +++ b/.github/workflows/linters.yaml @@ -17,6 +17,7 @@ jobs: steps: - uses: actions/checkout@v3 - uses: actions/setup-python@v4 + - run: pip config set global.break-system-packages 1 - run: pip install mypy - run: pip install types-cryptography types-urllib3 - run: pip install distro keyring progressbar zstandard diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 44a98b77..ae87c853 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -78,6 +78,7 @@ jobs: - name: 'Run unit tests' run: | + pip3 config set global.break-system-packages 1 pip3 install -e . python3 setup.py test