forked from github/pelican
Test new Pip 20.2 dependency resolver in GitHub CI
This commit is contained in:
parent
b10bb2f472
commit
6a40e24d85
1 changed files with 19 additions and 13 deletions
32
.github/workflows/main.yml
vendored
32
.github/workflows/main.yml
vendored
|
|
@ -66,7 +66,9 @@ jobs:
|
||||||
with:
|
with:
|
||||||
pandoc-version: "2.9.2"
|
pandoc-version: "2.9.2"
|
||||||
- name: Install tox
|
- 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
|
- name: Info
|
||||||
run: |
|
run: |
|
||||||
echo "===== PYTHON ====="
|
echo "===== PYTHON ====="
|
||||||
|
|
@ -96,7 +98,9 @@ jobs:
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-pip-
|
${{ runner.os }}-pip-
|
||||||
- name: Install tox
|
- 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
|
- name: Check
|
||||||
run: tox -e flake8
|
run: tox -e flake8
|
||||||
|
|
||||||
|
|
@ -120,7 +124,9 @@ jobs:
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-pip-
|
${{ runner.os }}-pip-
|
||||||
- name: Install tox
|
- 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
|
- name: Check
|
||||||
run: tox -e docs
|
run: tox -e docs
|
||||||
|
|
||||||
|
|
@ -137,12 +143,12 @@ jobs:
|
||||||
python-version: 3.6
|
python-version: 3.6
|
||||||
- name: Test sdist installation on Windows
|
- name: Test sdist installation on Windows
|
||||||
run: |
|
run: |
|
||||||
python -m pip install -U pip poetry
|
|
||||||
poetry build
|
|
||||||
python -m pip install -U pip
|
python -m pip install -U pip
|
||||||
|
python -m pip install --use-feature=2020-resolver -U poetry
|
||||||
|
poetry build
|
||||||
echo "Pip version:"
|
echo "Pip version:"
|
||||||
python -m 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:"
|
echo "Pelican version:"
|
||||||
pelican --version
|
pelican --version
|
||||||
python -m pip uninstall -y pelican
|
python -m pip uninstall -y pelican
|
||||||
|
|
@ -160,12 +166,12 @@ jobs:
|
||||||
python-version: 3.6
|
python-version: 3.6
|
||||||
- name: Test wheel installation on Windows
|
- name: Test wheel installation on Windows
|
||||||
run: |
|
run: |
|
||||||
python -m pip install -U pip poetry
|
|
||||||
poetry build
|
|
||||||
python -m pip install -U pip
|
python -m pip install -U pip
|
||||||
|
python -m pip install --use-feature=2020-resolver -U poetry
|
||||||
|
poetry build
|
||||||
echo "Pip version:"
|
echo "Pip version:"
|
||||||
python -m 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:"
|
echo "Pelican version:"
|
||||||
pelican --version
|
pelican --version
|
||||||
python -m pip uninstall -y pelican
|
python -m pip uninstall -y pelican
|
||||||
|
|
@ -186,10 +192,10 @@ jobs:
|
||||||
- name: Check release
|
- name: Check release
|
||||||
id: check_release
|
id: check_release
|
||||||
run: |
|
run: |
|
||||||
python -m pip install pip --upgrade
|
python -m pip install --use-feature=2020-resolver pip --upgrade
|
||||||
pip install poetry
|
pip install --use-feature=2020-resolver poetry
|
||||||
pip install githubrelease
|
pip install --use-feature=2020-resolver githubrelease
|
||||||
pip install --pre autopub
|
pip install --use-feature=2020-resolver --pre autopub
|
||||||
echo "##[set-output name=release;]$(autopub check)"
|
echo "##[set-output name=release;]$(autopub check)"
|
||||||
- name: Publish
|
- name: Publish
|
||||||
if: ${{ steps.check_release.outputs.release=='' }}
|
if: ${{ steps.check_release.outputs.release=='' }}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue