From 07006d7a9fcaaeebfa309da3fc7cfdead1f761de Mon Sep 17 00:00:00 2001 From: Pawel Kowalik Date: Sun, 18 Feb 2024 01:15:16 +0100 Subject: [PATCH] CI: test CI for Python 2.7 - install pip --- .github/workflows/test-and-publish.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test-and-publish.yml b/.github/workflows/test-and-publish.yml index 0d9cd30..2a115b6 100644 --- a/.github/workflows/test-and-publish.yml +++ b/.github/workflows/test-and-publish.yml @@ -41,7 +41,13 @@ jobs: python-version: ${{ matrix.python-version }} - name: Set up Python 2.7 if: ${{ matrix.python-version == '2.7' }} - run: sudo ln -sf /usr/bin/python2.7 /usr/bin/python + run: | + sudo ln -sf /usr/bin/python2.7 /usr/bin/python + sudo apt install curl + curl https://bootstrap.pypa.io/pip/2.7/get-pip.py --output get-pip.py + sudo python get-pip.py + which pip2 + - name: Install dependencies run: | python -m pip install --upgrade pip