Skip to content

Commit

Permalink
Remove detritus from CI image (#1384)
Browse files Browse the repository at this point in the history
Safety is pedantically correct, if overzealous, and the provided image in
ubuntu-latest contains some extra pre-installed packages.  This appears to
amount to a situation where pip does not properly remove an old version of an
updated package.  In this case, `pip` itself.  So ... help it along by manually
removing the offending package.

Hopefully, this will become a non-issue shortly once the image is updated again
-- a transient error.  Meanwhile, we have a new CI cruft of our own (`rm -rf
...`)
  • Loading branch information
khk-globus committed Dec 12, 2023
1 parent ae682e1 commit aba6d45
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@ jobs:
python-version: "3.11"
- name: install requirements
run: |
python -m pip install --upgrade pip setuptools
python -m pip install './compute_sdk'
python -m pip install './compute_endpoint'
python -m pip install -U pip setuptools
python -m pip install './compute_sdk' './compute_endpoint'
python -m pip install safety
rm -rf /opt/hostedtoolcache/Python/*/x64/lib/python3.*/site-packages/pip-23.{0,1,2}*
- name: run safety check
run: safety check

Expand Down

0 comments on commit aba6d45

Please sign in to comment.