diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index 2097fded1..439ed1820 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -153,14 +153,14 @@ 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: Install dbt-core latest run: | - pip install "git+https://github.com/dbt-labs/dbt-core.git#egg=dbt-core&subdirectory=core" + python -m pip install "git+https://github.com/dbt-labs/dbt-core.git#egg=dbt-core&subdirectory=core" - name: Run tox (bigquery) if: matrix.adapter == 'bigquery' diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 77e8e18e2..609872c95 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 @@ -88,13 +88,13 @@ 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: Install dbt-core latest run: | - pip install "git+https://github.com/dbt-labs/dbt-core.git#egg=dbt-core&subdirectory=core" + python -m pip install "git+https://github.com/dbt-labs/dbt-core.git#egg=dbt-core&subdirectory=core" - name: Run tox run: tox @@ -127,9 +127,10 @@ 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 @@ -168,9 +169,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: name: dist @@ -181,13 +182,13 @@ 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: | dbt --version - 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: | dbt --version 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 diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index aec184e46..15049f83b 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -43,7 +43,7 @@ If you are a member of the `dbt Labs` GitHub organization, you will have push ac First make sure that you set up your `virtualenv` as described in [Setting up an environment](https://github.com/dbt-labs/dbt-core/blob/HEAD/CONTRIBUTING.md#setting-up-an-environment). Ensure you have the latest version of pip installed with `pip install --upgrade pip`. Next, install `dbt-bigquery` latest dependencies: ```sh -pip install -e . -r dev-requirements.txt +pip install -e . -r dev_requirements.txt ``` When `dbt-bigquery` is installed this way, any changes you make to the `dbt-bigquery` source code will be reflected immediately in your next `dbt-bigquery` run.