Comment out pip reinstall step in python-app.yml #813
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Test | |
| on: [push, pull_request, workflow_dispatch] | |
| # concurrency: | |
| # group: ${{ github.workflow }}-${{ github.ref }} | |
| # cancel-in-progress: true | |
| # jobs: | |
| # build: | |
| # runs-on: ${{ matrix.os }} | |
| # strategy: | |
| # fail-fast: false | |
| # matrix: | |
| # python-version: ["pypy3.10", "3.13"] | |
| # os: [windows-latest, macos-latest, ubuntu-latest, ubuntu-22.04-arm, ubuntu-24.04-arm, macos-13] | |
| # steps: | |
| # - uses: actions/checkout@v4 | |
| # - name: Set up Python ${{ matrix.python-version }} | |
| # uses: actions/setup-python@v5 | |
| # # uses: mayeut/setup-python@pypy-aarch64 | |
| # with: | |
| # python-version: ${{ matrix.python-version }} | |
| # - name: Test | |
| # run: | | |
| # python --version --version | |
| jobs: | |
| test: | |
| runs-on: self-hosted | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v4 | |
| # - name: Show pip version before uninstall | |
| # run: | | |
| # echo "Checking pip version before uninstall:" | |
| # pip3 --version || echo "pip3 not found" | |
| # - name: Uninstall pip via apt | |
| # run: sudo apt-get remove python3-pip -y | |
| # - name: Try uninstalling pip via pip (in case leftovers) | |
| # run: pip3 uninstall pip -y || echo "pip3 uninstall may not work if pip is removed" | |
| # - name: Show pip version after uninstall | |
| # run: | | |
| # echo "Checking pip version after uninstall:" | |
| # if command -v pip3; then | |
| # echo "pip3 still exists!" | |
| # pip3 --version | |
| # exit 1 | |
| # else | |
| # echo "pip3 successfully removed." | |
| # fi | |
| # - name: Force reinstall pip | |
| # run: python3 -m ensurepip --upgrade | |
| - name: Set up Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: 3.13.9 | |
| pip-version: '25.2' | |
| cache: 'pip' | |
| - name: Display Python version | |
| run: python --version | |
| - name: Check pip | |
| run: | | |
| which pip | |
| pip --version |