Adding conditionals for needing break-system-packages on Linux wiht pip

This commit is contained in:
David Murphy 2024-11-08 14:49:48 -07:00
parent 0c255cfb80
commit ef3d82c1a8
No known key found for this signature in database
GPG key ID: 9D7724F37A7424D8
3 changed files with 5 additions and 4 deletions

View file

@ -47,8 +47,11 @@ jobs:
- name: Install Python Dependencies
run: |
## python3 -m pip install --break-system-packages -U pip
python3 -m pip install --break-system-packages -r tests/requirements.txt
if [[ ${{ inputs.distro-slug }} == "debian-11" || ${{ inputs.distro-slug }} == "debian-12" || ${{ inputs.distro-slug }} == "debian-13" || ${{ inputs.distro-slug }} == "ubuntu-2404" ]]; then
python3 -m pip install --break-system-packages -r tests/requirements.txt
else
python3 -m pip install -r tests/requirements.txt
fi
- name: Bootstrap Salt
run: |

View file

@ -49,7 +49,6 @@ jobs:
- name: Install Python Dependencies
run: |
## python3 -m pip install -U pip
python3 -m pip install -r tests/requirements.txt
- name: Bootstrap Salt

View file

@ -53,7 +53,6 @@ jobs:
- name: Install Python Dependencies
run: |
## python3 -m pip install -U pip
python3 -m pip install -r tests/requirements.txt
- name: Get Version