Skip to content

Commit

Permalink
update integration tests to use hatch
Browse files Browse the repository at this point in the history
  • Loading branch information
mikealfare committed Oct 8, 2024
1 parent b16d966 commit e2793ff
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 11 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/functional-tests-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ on:
checkout-ref:
required: true
type: string
checkout-repository:
required: true
type: string
concurrency:
group: ${{ github.workflow }}-${{ github.event_name }}-${{ contains(github.event_name, 'pull_request') && github.event.pull_request.head.ref || github.sha }}
cancel-in-progress: true
Expand All @@ -36,7 +33,6 @@ jobs:
uses: actions/checkout@v3
with:
ref: ${{ inputs.checkout-ref }}
repository: ${{ inputs.checkout-repository }}

- name: "Setup `hatch`"
uses: dbt-labs/dbt-adapters/.github/actions/setup-hatch@main
Expand All @@ -51,3 +47,4 @@ jobs:

- name: "Functional Test"
run: hatch run integration-tests
working-directory: ./dbt-athena
6 changes: 0 additions & 6 deletions .github/workflows/functional-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ on:
checkout-ref:
required: true
type: string
checkout-repository:
required: true
type: string

jobs:
# workflow that is invoked when for PRs with labels 'enable-functional-tests'
Expand All @@ -28,8 +25,6 @@ jobs:
with:
# this allows to pick the branch from the PR
checkout-ref: ${{ github.event.pull_request.head.ref }}
# this allows to work on fork
checkout-repository: ${{ github.event.pull_request.head.repo.full_name }}

# workflow that is invoked when a push to main happens
functional-tests-main:
Expand All @@ -45,4 +40,3 @@ jobs:
contents: read
with:
checkout-ref: ${{ github.ref }}
checkout-repository: ${{ github.repository }}
1 change: 0 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ jobs:
contents: read
with:
checkout-ref: ${{ inputs.branch }}
checkout-repository: ${{ github.repository }}

build-release:
name: "Build release"
Expand Down

0 comments on commit e2793ff

Please sign in to comment.