From 3477bb6438d297e740fdaf778843524923b8ebdf Mon Sep 17 00:00:00 2001 From: David Bloss Date: Fri, 5 May 2023 14:03:17 -0500 Subject: [PATCH 1/3] update used gh actions ahead of set-output, node12 deprecation (#695) --- .github/workflows/integration.yml | 14 +++++++------- .github/workflows/main.yml | 17 ++++++++++++----- 2 files changed, 19 insertions(+), 12 deletions(-) diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index a3bedf872..62843765f 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -66,13 +66,13 @@ jobs: steps: - name: Check out the repository (non-PR) if: github.event_name != 'pull_request_target' - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: persist-credentials: false - name: Check out the repository (PR) if: github.event_name == 'pull_request_target' - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: persist-credentials: false ref: ${{ github.event.pull_request.head.sha }} @@ -95,7 +95,7 @@ jobs: - 'tests/**' - name: Generate integration test matrix id: generate-matrix - uses: actions/github-script@v4 + uses: actions/github-script@v6 env: CHANGES: ${{ steps.get-changes.outputs.changes }} with: @@ -133,7 +133,7 @@ jobs: steps: - name: Check out the repository if: github.event_name != 'pull_request_target' - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: persist-credentials: false @@ -141,7 +141,7 @@ jobs: # this is necessary for the `pull_request_target` event - name: Check out the repository (PR) if: github.event_name == 'pull_request_target' - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: persist-credentials: false ref: ${{ github.event.pull_request.head.sha }} @@ -169,7 +169,7 @@ jobs: BIGQUERY_TEST_ALT_DATABASE: ${{ secrets.BIGQUERY_TEST_ALT_DATABASE }} run: tox - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v3 if: always() with: name: logs @@ -180,7 +180,7 @@ jobs: id: date run: echo "::set-output name=date::$(date +'%Y-%m-%dT%H_%M_%S')" #no colons allowed for artifacts - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v3 if: always() with: name: integration_results_${{ matrix.python-version }}_${{ matrix.os }}_${{ matrix.adapter }}-${{ steps.date.outputs.date }}.csv diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index dea1c898d..19c89eabb 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -87,7 +87,7 @@ jobs: steps: - name: Check out the repository - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: persist-credentials: false @@ -115,7 +115,7 @@ jobs: id: date run: echo "::set-output name=date::$(date +'%Y-%m-%dT%H_%M_%S')" #no colons allowed for artifacts - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v3 if: always() with: name: unit_results_${{ matrix.python-version }}-${{ steps.date.outputs.date }}.csv @@ -128,7 +128,7 @@ jobs: steps: - name: Check out the repository - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: persist-credentials: false @@ -157,7 +157,14 @@ jobs: run: | check-wheel-contents dist/*.whl --ignore W007,W008 - - uses: actions/upload-artifact@v2 + - name: Check if this is an alpha version + id: check-is-alpha + run: | + export is_alpha=0 + if [[ "$(ls -lh dist/)" == *"a1"* ]]; then export is_alpha=1; fi + echo "::set-output name=is_alpha::$is_alpha" + + - uses: actions/upload-artifact@v3 with: name: dist path: dist/ @@ -187,7 +194,7 @@ jobs: python -m pip install --upgrade wheel python -m pip --version - - uses: actions/download-artifact@v2 + - uses: actions/download-artifact@v3 with: name: dist path: dist/ From 693dbeb1b1ea59a0c8fb6387877a9af0d29ab5d0 Mon Sep 17 00:00:00 2001 From: Emily Rockman Date: Tue, 16 May 2023 09:30:00 -0500 Subject: [PATCH 2/3] updating set-output (#725) * updating set-output * add pipe --- .github/workflows/integration.yml | 3 ++- .github/workflows/main.yml | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index 62843765f..d4dc59630 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -178,7 +178,8 @@ jobs: - name: Get current date if: always() id: date - run: echo "::set-output name=date::$(date +'%Y-%m-%dT%H_%M_%S')" #no colons allowed for artifacts + run: | + echo "date=$(date +'%Y-%m-%dT%H_%M_%S')" >> $GITHUB_OUTPUT #no colons allowed for artifacts - uses: actions/upload-artifact@v3 if: always() diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 19c89eabb..26667b2c0 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -113,7 +113,8 @@ jobs: - name: Get current date if: always() id: date - run: echo "::set-output name=date::$(date +'%Y-%m-%dT%H_%M_%S')" #no colons allowed for artifacts + run: | + echo "date=$(date +'%Y-%m-%dT%H_%M_%S')" >> $GITHUB_OUTPUT #no colons allowed for artifacts - uses: actions/upload-artifact@v3 if: always() @@ -162,7 +163,7 @@ jobs: run: | export is_alpha=0 if [[ "$(ls -lh dist/)" == *"a1"* ]]; then export is_alpha=1; fi - echo "::set-output name=is_alpha::$is_alpha" + echo "is_alpha=$is_alpha" >> $GITHUB_OUTPUT - uses: actions/upload-artifact@v3 with: From aff0587d4a1efca8046557dbc337962b20c39272 Mon Sep 17 00:00:00 2001 From: Emily Rockman Date: Mon, 5 Jun 2023 08:46:48 -0500 Subject: [PATCH 3/3] remove installing core from main --- .github/workflows/integration.yml | 4 ---- .github/workflows/main.yml | 4 ---- 2 files changed, 8 deletions(-) diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index d4dc59630..49917b2de 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -158,10 +158,6 @@ jobs: python -m pip --version tox --version - - name: Install dbt-core latest - run: | - 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' env: diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 26667b2c0..30b930bee 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -103,10 +103,6 @@ jobs: python -m pip --version tox --version - - name: Install dbt-core latest - run: | - python -m pip install "git+https://github.com/dbt-labs/dbt-core.git#egg=dbt-core&subdirectory=core" - - name: Run tox run: tox