From 62554f36eb85297c5238b0561374096094045a53 Mon Sep 17 00:00:00 2001 From: Gemma Down <52132406+glsdown@users.noreply.github.com> Date: Mon, 11 Sep 2023 14:40:52 +0100 Subject: [PATCH] Add Python setup (#380) --- .github/workflows/ci_lint_package.yml | 8 +++++++- .github/workflows/main_lint_package.yml | 8 +++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci_lint_package.yml b/.github/workflows/ci_lint_package.yml index 111f6357..9f1508f3 100644 --- a/.github/workflows/ci_lint_package.yml +++ b/.github/workflows/ci_lint_package.yml @@ -43,8 +43,14 @@ jobs: with: ref: ${{ github.event.pull_request.head.sha }} # Check out the code of the PR + - name: Setup Python + uses: actions/setup-python@v4 + with: + python-version: "3.9.x" + architecture: "x64" + - name: Install Python packages - run: python -m pip install dbt-snowflake~=1.6.0 sqlfluff-templater-dbt~=2.0.2 + run: python -m pip install dbt-snowflake~=1.6.0 sqlfluff-templater-dbt~=2.3.2 - name: Test database connection run: dbt debug diff --git a/.github/workflows/main_lint_package.yml b/.github/workflows/main_lint_package.yml index 45985ec2..7747f565 100644 --- a/.github/workflows/main_lint_package.yml +++ b/.github/workflows/main_lint_package.yml @@ -39,8 +39,14 @@ jobs: - name: Checkout branch uses: actions/checkout@v3 + - name: Setup Python + uses: actions/setup-python@v4 + with: + python-version: "3.9.x" + architecture: "x64" + - name: Install Python packages - run: python -m pip install dbt-snowflake~=1.6.0 sqlfluff-templater-dbt~=2.0.2 + run: python -m pip install dbt-snowflake~=1.6.0 sqlfluff-templater-dbt~=2.3.2 - name: Test database connection run: dbt debug