Skip to content

Commit beb3845

Browse files
Update python-app.yml
1 parent 36716d6 commit beb3845

1 file changed

Lines changed: 4 additions & 9 deletions

File tree

.github/workflows/python-app.yml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -37,16 +37,11 @@ jobs:
3737
steps:
3838
- name: Check out repository
3939
uses: actions/checkout@v4
40-
- name: Show pip version before uninstall
40+
- name: Fix pip entries
4141
run: |
42-
echo "Checking pip version before uninstall:"
43-
pip3 --version || echo "pip3 not found"
44-
45-
- name: Uninstall pip via apt
46-
run: sudo apt-get remove python3-pip -y
47-
48-
- name: Try uninstalling pip via pip (in case leftovers)
49-
run: pip3 uninstall pip -y || echo "pip3 uninstall may not work if pip is removed"
42+
python -m pip uninstall -y pip
43+
python -m ensurepip --upgrade
44+
python -m pip install --upgrade pip
5045
5146
# - name: Show pip version after uninstall
5247
# run: |

0 commit comments

Comments
 (0)