Skip to content

Commit

Permalink
Updated for MacOS 14 and pip
Browse files Browse the repository at this point in the history
  • Loading branch information
dmurphy18 committed Nov 21, 2024
1 parent 9ef4b48 commit bcffbb3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 16 deletions.
18 changes: 3 additions & 15 deletions .github/workflows/test-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,11 @@ jobs:
- name: Install Python Dependencies with pip breakage
if: ${{ ( inputs.distro-slug == 'debian-11' ) || ( inputs.distro-slug == 'debian-12' ) || ( inputs.distro-slug == 'debian-13' ) || ( inputs.distro-slug == 'ubuntu-2404' ) }}
run: |
echo "DGM pip test for distro-slug ${{ inputs.distro-slug }}"
echo "DGM doing break-system-packages for distro-slug ${{ inputs.distro-slug }}"
python3 -m pip install --break-system-packages -r tests/requirements.txt
- name: Install Python Dependencies without pip breakage
if: ${{ ( inputs.distro-slug != 'debian-11' ) && ( inputs.distro-slug != 'debian-12' ) && ( inputs.distro-slug != 'debian-13' ) && ( inputs.distro-slug != 'ubuntu-2404' ) }}
run: |
echo "DGM pip test for distro-slug ${{ inputs.distro-slug }}"
echo "DGM plain pip for distro-slug ${{ inputs.distro-slug }}"
python3 -m pip install -r tests/requirements.txt
- name: Get Version
Expand All @@ -66,23 +62,15 @@ jobs:
# It is used to install via bootstrap and in the test
# The version is in the instance name
# sed 1st - becomes space, 2nd - becomes dot
## DGM needs cleanup
echo "matrix instance ,${{ matrix.instance }},"
vt_parms=$(echo "${{ matrix.instance }}" | sed 's/-/ /' | sed 's/-/./')
vt_parm_ver=$(echo "$vt_parms" | awk -F ' ' '{print $2}')
echo "vt parms ,$vt_parms, vt_parms_ver ,$vt_parm_ver,"
vt_parm_ver=$(echo "${{ matrix.instance }}" | sed 's/-/ /' | sed 's/-/./' | awk -F ' ' '{print $2}')
echo "SaltVersion=$vt_parm_ver" >> $GITHUB_ENV
- name: Bootstrap Salt
run: |
# sed 1st - becomes space, 2nd - becomes dot
## DGM needs cleanup
echo "matrix instance ,${{ matrix.instance }},"
bt_parms=$(echo "${{ matrix.instance }}" | sed 's/-/ /' | sed 's/-/./')
bt_arg1=$(echo "$bt_parms" | awk -F ' ' '{print $1}')
bt_arg2=$(echo "$bt_parms" | awk -F ' ' '{print $2}')
bt_arg1=$(echo "${{ matrix.instance }}" | sed 's/-/ /' | sed 's/-/./' | awk -F ' ' '{print $1}')
bt_arg2=$(echo "${{ matrix.instance }}" | sed 's/-/ /' | sed 's/-/./' | awk -F ' ' '{print $2}')
echo "bt parms ,$bt_parms, bt_arg1 ,$bt_arg1, bt_arg2 ,$bt_arg2,"
## DGM sudo sh -x ./bootstrap-salt.sh "$bt_arg1" "$bt_arg2"
sh -x ./bootstrap-salt.sh "$bt_arg1" "$bt_arg2"
- name: Test Bootstrap
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/test-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,13 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Install Python Dependencies
- name: Install Python Dependencies with pip breakage
if: ${{ ( inputs.distro-slug != 'macos-12' ) && ( inputs.distro-slug != 'macos-13' ) }}
run: |
python3 -m pip install --break-system-packages -r tests/requirements.txt
- name: Install Python Dependencies without pip breakage
if: ${{ ( inputs.distro-slug == 'macos-12' ) || ( inputs.distro-slug == 'macos-13' ) }}
run: |
python3 -m pip install -r tests/requirements.txt
Expand Down

0 comments on commit bcffbb3

Please sign in to comment.