1
0
Fork 0
forked from github/pelican

Test new Pip 20.2 dependency resolver in GitHub CI

This commit is contained in:
Justin Mayer 2020-07-29 07:34:16 +02:00
commit 6a40e24d85

View file

@ -66,7 +66,9 @@ jobs:
with:
pandoc-version: "2.9.2"
- name: Install tox
run: python -m pip install -U pip tox
run: |
python -m pip install -U pip
python -m pip install --use-feature=2020-resolver -U tox
- name: Info
run: |
echo "===== PYTHON ====="
@ -96,7 +98,9 @@ jobs:
restore-keys: |
${{ runner.os }}-pip-
- name: Install tox
run: python -m pip install -U pip tox
run: |
python -m pip install -U pip
python -m pip install --use-feature=2020-resolver -U tox
- name: Check
run: tox -e flake8
@ -120,7 +124,9 @@ jobs:
restore-keys: |
${{ runner.os }}-pip-
- name: Install tox
run: python -m pip install -U pip tox
run: |
python -m pip install -U pip
python -m pip install --use-feature=2020-resolver -U tox
- name: Check
run: tox -e docs
@ -137,12 +143,12 @@ jobs:
python-version: 3.6
- name: Test sdist installation on Windows
run: |
python -m pip install -U pip poetry
poetry build
python -m pip install -U pip
python -m pip install --use-feature=2020-resolver -U poetry
poetry build
echo "Pip version:"
python -m pip --version
python -m pip install ${env:GITHUB_WORKSPACE}\dist\pelican-4.2.0.tar.gz
python -m pip install --use-feature=2020-resolver ${env:GITHUB_WORKSPACE}\dist\pelican-4.2.0.tar.gz
echo "Pelican version:"
pelican --version
python -m pip uninstall -y pelican
@ -160,12 +166,12 @@ jobs:
python-version: 3.6
- name: Test wheel installation on Windows
run: |
python -m pip install -U pip poetry
poetry build
python -m pip install -U pip
python -m pip install --use-feature=2020-resolver -U poetry
poetry build
echo "Pip version:"
python -m pip --version
python -m pip install ${env:GITHUB_WORKSPACE}\dist\pelican-4.2.0-py3-none-any.whl
python -m pip install --use-feature=2020-resolver ${env:GITHUB_WORKSPACE}\dist\pelican-4.2.0-py3-none-any.whl
echo "Pelican version:"
pelican --version
python -m pip uninstall -y pelican
@ -186,10 +192,10 @@ jobs:
- name: Check release
id: check_release
run: |
python -m pip install pip --upgrade
pip install poetry
pip install githubrelease
pip install --pre autopub
python -m pip install --use-feature=2020-resolver pip --upgrade
pip install --use-feature=2020-resolver poetry
pip install --use-feature=2020-resolver githubrelease
pip install --use-feature=2020-resolver --pre autopub
echo "##[set-output name=release;]$(autopub check)"
- name: Publish
if: ${{ steps.check_release.outputs.release=='' }}