Skip to content

Commit

Permalink
[ci] fix macos --user install uv not found
Browse files Browse the repository at this point in the history
  • Loading branch information
yashgorana committed Mar 14, 2024
1 parent 237eec8 commit 5e37f59
Show file tree
Hide file tree
Showing 9 changed files with 30 additions and 30 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cd-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:

- name: Install tox
run: |
pip install --upgrade --user pip uv==${{ vars.UV_VERSION }} tox tox-uv==${{ vars.TOX_UV_VERSION }}
pip install --upgrade pip uv==${{ vars.UV_VERSION }} tox tox-uv==${{ vars.TOX_UV_VERSION }}
uv --version
- name: Build the docs
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/cd-syft.yml
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ jobs:
- name: Install dependencies
run: |
pip install --upgrade --user pip uv==${{ vars.UV_VERSION }} bump2version tox tox-uv==${{ vars.TOX_UV_VERSION }}
pip install --upgrade pip uv==${{ vars.UV_VERSION }} bump2version tox tox-uv==${{ vars.TOX_UV_VERSION }}
uv --version
- name: Get Release tag
Expand Down Expand Up @@ -370,7 +370,7 @@ jobs:
python-version: "3.12"
- name: Install dependencies
run: |
pip install --upgrade --user pip uv==${{ vars.UV_VERSION }} tox tox-uv==${{ vars.TOX_UV_VERSION }} setuptools wheel twine bump2version PyYAML
pip install --upgrade pip uv==${{ vars.UV_VERSION }} tox tox-uv==${{ vars.TOX_UV_VERSION }} setuptools wheel twine bump2version PyYAML
uv --version
- name: Bump the Version
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-tests-enclave.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ jobs:
- name: Upgrade pip
if: steps.changes.outputs.syft == 'true'
run: |
pip install --upgrade --user pip uv==${{ vars.UV_VERSION }}
pip install --upgrade pip uv==${{ vars.UV_VERSION }}
uv --version
- name: Get pip cache dir
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/pr-tests-frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
- name: Upgrade pip
if: steps.changes.outputs.frontend == 'true'
run: |
pip install --upgrade --user pip uv==${{ vars.UV_VERSION }}
pip install --upgrade pip uv==${{ vars.UV_VERSION }}
uv --version
- name: Get pip cache dir
Expand All @@ -72,7 +72,7 @@ jobs:
- name: Install Tox
if: steps.changes.outputs.frontend == 'true'
run: |
pip install --upgrade --user tox tox-uv==${{ vars.TOX_UV_VERSION }}
pip install --upgrade tox tox-uv==${{ vars.TOX_UV_VERSION }}
- name: Remove existing containers
if: steps.changes.outputs.frontend == 'true'
Expand Down Expand Up @@ -128,7 +128,7 @@ jobs:
- name: Upgrade pip
if: steps.changes.outputs.stack == 'true'
run: |
pip install --upgrade --user pip uv==${{ vars.UV_VERSION }}
pip install --upgrade pip uv==${{ vars.UV_VERSION }}
uv --version
- name: Get pip cache dir
Expand Down Expand Up @@ -163,7 +163,7 @@ jobs:
- name: Install Tox
if: steps.changes.outputs.stack == 'true'
run: |
pip install --upgrade --user tox tox-uv==${{ vars.TOX_UV_VERSION }}
pip install --upgrade tox tox-uv==${{ vars.TOX_UV_VERSION }}
- name: Remove existing containers
if: steps.changes.outputs.stack == 'true'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pr-tests-linting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:

- name: Install pip packages
run: |
pip install --upgrade --user pip uv==${{ vars.UV_VERSION }}
pip install --upgrade pip uv==${{ vars.UV_VERSION }}
uv --version
- name: Get pip cache dir
Expand All @@ -49,7 +49,7 @@ jobs:
- name: Install Tox
run: |
pip install --upgrade --user tox tox-uv==${{ vars.TOX_UV_VERSION }}
pip install --upgrade tox tox-uv==${{ vars.TOX_UV_VERSION }}
- uses: pre-commit/[email protected]

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pr-tests-stack-arm64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:

- name: Upgrade pip
run: |
pip install --upgrade --user pip uv==${{ vars.UV_VERSION }}
pip install --upgrade pip uv==${{ vars.UV_VERSION }}
uv --version
# - name: Get pip cache dir
Expand All @@ -74,7 +74,7 @@ jobs:

- name: Install tox
run: |
pip install --upgrade --user tox tox-uv==${{ vars.TOX_UV_VERSION }}
pip install --upgrade tox tox-uv==${{ vars.TOX_UV_VERSION }}
- name: Install Docker Compose
if: runner.os == 'Linux'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pr-tests-stack-public.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
- name: Upgrade pip
if: steps.changes.outputs.stack == 'true'
run: |
pip install --upgrade --user pip uv==${{ vars.UV_VERSION }}
pip install --upgrade pip uv==${{ vars.UV_VERSION }}
uv --version
- name: Get pip cache dir
Expand All @@ -75,7 +75,7 @@ jobs:
- name: Install tox
if: steps.changes.outputs.stack == 'true'
run: |
pip install --upgrade --user tox tox-uv==${{ vars.TOX_UV_VERSION }}
pip install --upgrade tox tox-uv==${{ vars.TOX_UV_VERSION }}
- name: Show choco installed packages
if: steps.changes.outputs.stack == 'true' && matrix.os == 'windows'
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/pr-tests-stack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ jobs:
- name: Upgrade pip
if: steps.changes.outputs.stack == 'true'
run: |
pip install --upgrade --user pip uv==${{ vars.UV_VERSION }}
pip install --upgrade pip uv==${{ vars.UV_VERSION }}
uv --version
- name: Get pip cache dir
Expand All @@ -99,7 +99,7 @@ jobs:
- name: Install tox
if: steps.changes.outputs.stack == 'true'
run: |
pip install --upgrade --user tox tox-uv==${{ vars.TOX_UV_VERSION }}
pip install --upgrade tox tox-uv==${{ vars.TOX_UV_VERSION }}
- name: Show choco installed packages
if: steps.changes.outputs.stack == 'true' && matrix.os == 'windows'
Expand Down Expand Up @@ -269,7 +269,7 @@ jobs:
- name: Upgrade pip
if: steps.changes.outputs.stack == 'true'
run: |
pip install --upgrade --user pip uv==${{ vars.UV_VERSION }}
pip install --upgrade pip uv==${{ vars.UV_VERSION }}
uv --version
- name: Get pip cache dir
Expand All @@ -291,7 +291,7 @@ jobs:
- name: Install tox
if: steps.changes.outputs.stack == 'true'
run: |
pip install --upgrade --user tox tox-uv==${{ vars.TOX_UV_VERSION }}
pip install --upgrade tox tox-uv==${{ vars.TOX_UV_VERSION }}
- name: Run syft backend base image building test
if: steps.changes.outputs.stack == 'true'
Expand Down Expand Up @@ -352,7 +352,7 @@ jobs:
- name: Upgrade pip
if: steps.changes.outputs.stack == 'true'
run: |
pip install --upgrade --user pip uv==${{ vars.UV_VERSION }}
pip install --upgrade pip uv==${{ vars.UV_VERSION }}
uv --version
- name: Get pip cache dir
Expand All @@ -374,7 +374,7 @@ jobs:
- name: Install tox
if: steps.changes.outputs.stack == 'true'
run: |
pip install --upgrade --user tox tox-uv==${{ vars.TOX_UV_VERSION }}
pip install --upgrade tox tox-uv==${{ vars.TOX_UV_VERSION }}
- name: Show choco installed packages
if: steps.changes.outputs.stack == 'true' && matrix.os == 'windows'
Expand Down Expand Up @@ -569,7 +569,7 @@ jobs:
- name: Upgrade pip
if: steps.changes.outputs.stack == 'true'
run: |
pip install --upgrade --user pip uv==${{ vars.UV_VERSION }}
pip install --upgrade pip uv==${{ vars.UV_VERSION }}
uv --version
- name: Get pip cache dir
Expand All @@ -591,7 +591,7 @@ jobs:
- name: Install tox
if: steps.changes.outputs.stack == 'true'
run: |
pip install --upgrade --user tox tox-uv==${{ vars.TOX_UV_VERSION }}
pip install --upgrade tox tox-uv==${{ vars.TOX_UV_VERSION }}
- name: Install kubectl
if: steps.changes.outputs.stack == 'true'
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/pr-tests-syft.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ jobs:
- name: Upgrade pip
if: steps.changes.outputs.syft == 'true'
run: |
pip install --upgrade --user pip uv==${{ vars.UV_VERSION }}
pip install --upgrade pip uv==${{ vars.UV_VERSION }}
uv --version
- name: Get pip cache dir
Expand Down Expand Up @@ -93,7 +93,7 @@ jobs:
- name: Install Dependencies
if: steps.changes.outputs.syft == 'true'
run: |
pip install --upgrade --user tox tox-uv==${{ vars.TOX_UV_VERSION }}
pip install --upgrade tox tox-uv==${{ vars.TOX_UV_VERSION }}
- name: Run unit tests
if: steps.changes.outputs.syft == 'true'
Expand Down Expand Up @@ -153,7 +153,7 @@ jobs:
- name: Upgrade pip
if: steps.changes.outputs.syft == 'true' || steps.changes.outputs.notebooks == 'true'
run: |
pip install --upgrade --user pip uv==${{ vars.UV_VERSION }}
pip install --upgrade pip uv==${{ vars.UV_VERSION }}
uv --version
- name: Get pip cache dir
Expand All @@ -175,7 +175,7 @@ jobs:
- name: Install Dependencies
if: steps.changes.outputs.syft == 'true' || steps.changes.outputs.notebooks == 'true'
run: |
pip install --upgrade --user tox tox-uv==${{ vars.TOX_UV_VERSION }}
pip install --upgrade tox tox-uv==${{ vars.TOX_UV_VERSION }}
- name: Run notebook tests
uses: nick-fields/retry@v3
Expand Down Expand Up @@ -234,7 +234,7 @@ jobs:
- name: Upgrade pip
if: steps.changes.outputs.stack == 'true' || steps.changes.outputs.notebooks == 'true'
run: |
pip install --upgrade --user pip uv==${{ vars.UV_VERSION }}
pip install --upgrade pip uv==${{ vars.UV_VERSION }}
uv --version
- name: Get pip cache dir
Expand All @@ -256,7 +256,7 @@ jobs:
- name: Install Dependencies
if: steps.changes.outputs.stack == 'true' || steps.changes.outputs.notebooks == 'true'
run: |
pip install --upgrade --user tox tox-uv==${{ vars.TOX_UV_VERSION }}
pip install --upgrade tox tox-uv==${{ vars.TOX_UV_VERSION }}
- name: Docker Compose on Linux
if: (steps.changes.outputs.stack == 'true' || steps.changes.outputs.notebooks == 'true') && matrix.os == 'ubuntu-latest'
Expand Down Expand Up @@ -333,7 +333,7 @@ jobs:
- name: Upgrade pip
if: steps.changes.outputs.syft == 'true'
run: |
pip install --upgrade --user pip uv==${{ vars.UV_VERSION }}
pip install --upgrade pip uv==${{ vars.UV_VERSION }}
uv --version
- name: Get pip cache dir
Expand All @@ -355,7 +355,7 @@ jobs:
- name: Install Dependencies
if: steps.changes.outputs.syft == 'true'
run: |
pip install --upgrade --user tox tox-uv==${{ vars.TOX_UV_VERSION }}
pip install --upgrade tox tox-uv==${{ vars.TOX_UV_VERSION }}
- name: Scan for security issues
if: steps.changes.outputs.syft == 'true'
Expand Down

0 comments on commit 5e37f59

Please sign in to comment.