PIP has reached EOL for Py2 - only update it for Py3 (#3838)
This commit is contained in:
parent
b138d9956b
commit
9fa7613c4d
21
.github/workflows/build.yml
vendored
21
.github/workflows/build.yml
vendored
@ -31,10 +31,13 @@ jobs:
|
|||||||
if: ${{ matrix.python-version == 3.8 && steps.pip-cache.outputs.cache-hit != 'true' }}
|
if: ${{ matrix.python-version == 3.8 && steps.pip-cache.outputs.cache-hit != 'true' }}
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get install libxslt-dev libxml2-dev -y
|
sudo apt-get install libxslt-dev libxml2-dev -y
|
||||||
|
- name: Update pip
|
||||||
|
if: ${{ steps.pip-cache.outputs.cache-hit != 'true' && matrix.python-version != '2.7' }}
|
||||||
|
run: |
|
||||||
|
python -m pip install --upgrade pip
|
||||||
- name: Install project dependencies
|
- name: Install project dependencies
|
||||||
if: ${{ steps.pip-cache.outputs.cache-hit != 'true' }}
|
if: ${{ steps.pip-cache.outputs.cache-hit != 'true' }}
|
||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip
|
|
||||||
pip install -r requirements-dev.txt
|
pip install -r requirements-dev.txt
|
||||||
|
|
||||||
lint:
|
lint:
|
||||||
@ -60,10 +63,14 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
path: ${{ steps.pip-cache.outputs.dir }}
|
path: ${{ steps.pip-cache.outputs.dir }}
|
||||||
key: pip-${{ matrix.python-version }}-${{ hashFiles('**/setup.py') }}
|
key: pip-${{ matrix.python-version }}-${{ hashFiles('**/setup.py') }}
|
||||||
|
# Update PIP - recent version does not support PY2 though
|
||||||
|
- name: Update pip
|
||||||
|
if: ${{ matrix.python-version != '2.7' }}
|
||||||
|
run: |
|
||||||
|
python -m pip install --upgrade pip
|
||||||
# Still need to properly install the dependencies - it will only skip the download part
|
# Still need to properly install the dependencies - it will only skip the download part
|
||||||
- name: Install project dependencies
|
- name: Install project dependencies
|
||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip
|
|
||||||
pip install -r requirements-dev.txt
|
pip install -r requirements-dev.txt
|
||||||
- name: Lint with flake8
|
- name: Lint with flake8
|
||||||
run:
|
run:
|
||||||
@ -99,9 +106,12 @@ jobs:
|
|||||||
if: ${{ matrix.python-version == 3.8 }}
|
if: ${{ matrix.python-version == 3.8 }}
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get install libxslt-dev libxml2-dev -y
|
sudo apt-get install libxslt-dev libxml2-dev -y
|
||||||
- name: Install project dependencies
|
- name: Update pip
|
||||||
|
if: ${{ matrix.python-version != '2.7' }}
|
||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
|
- name: Install project dependencies
|
||||||
|
run: |
|
||||||
pip install -r requirements-dev.txt
|
pip install -r requirements-dev.txt
|
||||||
pip install pytest-cov
|
pip install pytest-cov
|
||||||
- name: Test with pytest
|
- name: Test with pytest
|
||||||
@ -148,9 +158,12 @@ jobs:
|
|||||||
if: ${{ matrix.python-version == 3.8 }}
|
if: ${{ matrix.python-version == 3.8 }}
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get install libxslt-dev libxml2-dev -y
|
sudo apt-get install libxslt-dev libxml2-dev -y
|
||||||
- name: Install project dependencies
|
- name: Update pip
|
||||||
|
if: ${{ matrix.python-version != '2.7' }}
|
||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
|
- name: Install project dependencies
|
||||||
|
run: |
|
||||||
pip install -r requirements-dev.txt
|
pip install -r requirements-dev.txt
|
||||||
- name: Test ServerMode/Coverage
|
- name: Test ServerMode/Coverage
|
||||||
env:
|
env:
|
||||||
|
Loading…
Reference in New Issue
Block a user