From 5f6d1b5254d7ebbc87498101127dea9dfc32b3df Mon Sep 17 00:00:00 2001 From: Patrick Lehmann Date: Thu, 3 Nov 2022 07:13:44 +0100 Subject: [PATCH] Added --disable-pip-version-check. Closes #50. --- .github/workflows/CoverageCollection.yml | 6 +++--- .github/workflows/Package.yml | 9 +++------ .github/workflows/PublishOnPyPI.yml | 4 +--- .github/workflows/StaticTypeCheck.yml | 4 +--- .github/workflows/UnitTesting.yml | 11 ++++------- releaser/composite/action.yml | 2 +- 6 files changed, 13 insertions(+), 23 deletions(-) diff --git a/.github/workflows/CoverageCollection.yml b/.github/workflows/CoverageCollection.yml index 49b9cd5..12b85b4 100644 --- a/.github/workflows/CoverageCollection.yml +++ b/.github/workflows/CoverageCollection.yml @@ -76,14 +76,14 @@ jobs: - name: ๐Ÿ—‚ Install dependencies run: | - python -m pip install -U pip - python -m pip install tomli - python -m pip install ${{ inputs.requirements }} + python -m pip install --disable-pip-version-check tomli + python -m pip install --disable-pip-version-check ${{ inputs.requirements }} - name: ๐Ÿ” Extract configurations from pyproject.toml id: getVariables shell: python run: | + from os import getenv from pathlib import Path from tomli import load as tomli_load diff --git a/.github/workflows/Package.yml b/.github/workflows/Package.yml index c64a215..f0833ec 100644 --- a/.github/workflows/Package.yml +++ b/.github/workflows/Package.yml @@ -55,14 +55,11 @@ jobs: with: python-version: ${{ inputs.python_version }} - - name: ๐Ÿ Update pip - run: python -m pip install -U pip - # build - name: ๐Ÿ”ง [build] Install dependencies for packaging and release if: inputs.requirements == '' - run: python -m pip install build + run: python -m pip install --disable-pip-version-check build - name: ๐Ÿ”จ [build] Build Python package (source distribution) if: inputs.requirements == '' @@ -76,7 +73,7 @@ jobs: - name: ๐Ÿ”ง [build] Install dependencies for packaging and release if: inputs.requirements == 'no-isolation' - run: python -m pip install build + run: python -m pip install --disable-pip-version-check build - name: ๐Ÿ”จ [build] Build Python package (source distribution) if: inputs.requirements == 'no-isolation' @@ -90,7 +87,7 @@ jobs: - name: ๐Ÿ”ง [setuptools] Install dependencies for packaging and release if: inputs.requirements != '' && inputs.requirements != 'no-isolation' - run: python -m pip install ${{ inputs.requirements }} + run: python -m pip install --disable-pip-version-check ${{ inputs.requirements }} - name: ๐Ÿ”จ [setuptools] Build Python package (source distribution) if: inputs.requirements != '' && inputs.requirements != 'no-isolation' diff --git a/.github/workflows/PublishOnPyPI.yml b/.github/workflows/PublishOnPyPI.yml index 2e120ca..897dc59 100644 --- a/.github/workflows/PublishOnPyPI.yml +++ b/.github/workflows/PublishOnPyPI.yml @@ -63,9 +63,7 @@ jobs: python-version: ${{ inputs.python_version }} - name: โš™ Install dependencies for packaging and release - run: | - python -m pip install -U pip - python -m pip install ${{ inputs.requirements }} + run: python -m pip install --disable-pip-version-check ${{ inputs.requirements }} - name: โคด Release Python source package to PyPI env: diff --git a/.github/workflows/StaticTypeCheck.yml b/.github/workflows/StaticTypeCheck.yml index 3aa3f12..c391a5e 100644 --- a/.github/workflows/StaticTypeCheck.yml +++ b/.github/workflows/StaticTypeCheck.yml @@ -65,9 +65,7 @@ jobs: python-version: ${{ inputs.python_version }} - name: ๐Ÿ—‚ Install dependencies - run: | - python -m pip install -U pip - python -m pip install ${{ inputs.requirements }} + run: python -m pip install --disable-pip-version-check ${{ inputs.requirements }} - name: Check Static Typing continue-on-error: true diff --git a/.github/workflows/UnitTesting.yml b/.github/workflows/UnitTesting.yml index afa75ad..859cc8a 100644 --- a/.github/workflows/UnitTesting.yml +++ b/.github/workflows/UnitTesting.yml @@ -97,22 +97,19 @@ jobs: with: python-version: ${{ matrix.python }} - - name: โš™๏ธ Update pip - run: python -m pip install -U pip - - name: ๐Ÿ”ง Install wheel and pip dependencies if: matrix.system != 'msys2' run: | - python -m pip install -U wheel - python -m pip install ${{ inputs.requirements }} + python -m pip install --disable-pip-version-check -U wheel + python -m pip install --disable-pip-version-check ${{ inputs.requirements }} - name: ๐Ÿ”ง Install pip dependencies if: matrix.system == 'msys2' run: | if [ 'x${{ inputs.mingw_requirements }}' != 'x' ]; then - python -m pip install ${{ inputs.mingw_requirements }} + python -m pip install --disable-pip-version-check ${{ inputs.mingw_requirements }} else - python -m pip install ${{ inputs.requirements }} + python -m pip install --disable-pip-version-check ${{ inputs.requirements }} fi - name: โ˜‘ Run unit tests diff --git a/releaser/composite/action.yml b/releaser/composite/action.yml index caabdc0..ed3033e 100644 --- a/releaser/composite/action.yml +++ b/releaser/composite/action.yml @@ -45,7 +45,7 @@ runs: steps: - shell: bash - run: pip install PyGithub --progress-bar off + run: pip install --disable-pip-version-check PyGithub --progress-bar off - shell: bash run: '''${{ github.action_path }}/../releaser.py'''