From d8f44f1376b90badfc3f3fa8edb8871f805ba630 Mon Sep 17 00:00:00 2001 From: leahwicz <60146280+leahwicz@users.noreply.github.com> Date: Wed, 1 Jun 2022 15:12:28 -0400 Subject: [PATCH] Fixing pip upgrade for CI (#122) --- .github/workflows/integration.yml | 6 +++--- .github/workflows/main.yml | 28 ++++++++++++++-------------- .github/workflows/version-bump.yml | 4 ++-- 3 files changed, 19 insertions(+), 19 deletions(-) diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index 45f821381..cddbc6529 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -154,9 +154,9 @@ jobs: - name: Install python dependencies run: | - pip install --user --upgrade pip - pip install tox - pip --version + python -m pip install --user --upgrade pip + python -m pip install tox + python -m pip --version tox --version - name: Run tox (redshift) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c645f8208..33ba12c2e 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -52,9 +52,9 @@ jobs: - name: Install python dependencies run: | - pip install --user --upgrade pip - pip install -r dev_requirements.txt - pip --version + python -m pip install --user --upgrade pip + python -m pip install -r dev_requirements.txt + python -m pip --version pre-commit --version mypy --version dbt --version @@ -89,9 +89,9 @@ jobs: - name: Install python dependencies run: | - pip install --user --upgrade pip - pip install tox - pip --version + python -m pip install --user --upgrade pip + python -m pip install tox + python -m pip --version tox --version - name: Run tox @@ -129,9 +129,9 @@ jobs: - name: Install python dependencies run: | - pip install --user --upgrade pip - pip install --upgrade setuptools wheel twine check-wheel-contents - pip --version + python -m pip install --user --upgrade pip + python -m pip install --upgrade setuptools wheel twine check-wheel-contents + python -m pip --version - name: Build distributions run: ./scripts/build-dist.sh @@ -182,9 +182,9 @@ jobs: - name: Install python dependencies run: | - pip install --user --upgrade pip - pip install --upgrade wheel - pip --version + python -m pip install --user --upgrade pip + python -m pip install --upgrade wheel + python -m pip --version - uses: actions/download-artifact@v2 with: @@ -196,7 +196,7 @@ jobs: - name: Install wheel distributions run: | - find ./dist/*.whl -maxdepth 1 -type f | xargs pip install --force-reinstall --find-links=dist/ + find ./dist/*.whl -maxdepth 1 -type f | xargs python -m pip install --force-reinstall --find-links=dist/ - name: Check wheel distributions run: | @@ -204,7 +204,7 @@ jobs: - name: Install source distributions run: | - find ./dist/*.gz -maxdepth 1 -type f | xargs pip install --force-reinstall --find-links=dist/ + find ./dist/*.gz -maxdepth 1 -type f | xargs python -m pip install --force-reinstall --find-links=dist/ - name: Check source distributions run: | diff --git a/.github/workflows/version-bump.yml b/.github/workflows/version-bump.yml index b0a3174df..2a8eb4498 100644 --- a/.github/workflows/version-bump.yml +++ b/.github/workflows/version-bump.yml @@ -57,7 +57,7 @@ jobs: run: | python3 -m venv env source env/bin/activate - pip install --upgrade pip + python -m pip install --upgrade pip - name: Create PR branch if: ${{ steps.variables.outputs.IS_DRY_RUN == 'true' }} @@ -69,7 +69,7 @@ jobs: - name: Bumping version run: | source env/bin/activate - pip install -r dev_requirements.txt + python -m pip install -r dev_requirements.txt env/bin/bumpversion --allow-dirty --new-version ${{steps.variables.outputs.VERSION_NUMBER}} major git status