Skip to content

Commit 8d5cef3

Browse files
ADAP-1125: Update the repo structure to migrate to a monorepo (#764)
Co-authored-by: Colin Rogers <[email protected]>
1 parent cb63070 commit 8d5cef3

19 files changed

+496
-564
lines changed
+81
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
name: "Integration tests"
2+
3+
on:
4+
workflow_call:
5+
inputs:
6+
package:
7+
description: "Choose the package to test"
8+
type: string
9+
default: "dbt-athena"
10+
branch:
11+
description: "Choose the branch to test"
12+
type: string
13+
default: "main"
14+
repository:
15+
description: "Choose the repository to test, when using a fork"
16+
type: string
17+
default: "dbt-labs/dbt-athena"
18+
os:
19+
description: "Choose the OS to test against"
20+
type: string
21+
default: ${{ vars.DEFAULT_RUNNER }}
22+
python-version:
23+
description: "Choose the Python version to test against"
24+
type: string
25+
default: ${{ vars.DEFAULT_PYTHON_VERSION }}
26+
workflow_dispatch:
27+
inputs:
28+
package:
29+
description: "Choose the package to test"
30+
type: choice
31+
options: ["dbt-athena", "dbt-athena-community"]
32+
branch:
33+
description: "Choose the branch to test"
34+
type: string
35+
default: "main"
36+
repository:
37+
description: "Choose the repository to test, when using a fork"
38+
type: string
39+
default: "dbt-labs/dbt-athena"
40+
os:
41+
description: "Choose the OS to test against"
42+
type: string
43+
default: ${{ vars.DEFAULT_RUNNER }}
44+
python-version:
45+
description: "Choose the Python version to test against"
46+
type: choice
47+
options: ["3.9", "3.10", "3.11", "3.12"]
48+
49+
permissions:
50+
id-token: write
51+
contents: read
52+
53+
env:
54+
DBT_TEST_ATHENA_S3_STAGING_DIR: ${{ vars.DBT_TEST_ATHENA_S3_BUCKET }}/staging/
55+
DBT_TEST_ATHENA_S3_TMP_TABLE_DIR: ${{ vars.DBT_TEST_ATHENA_S3_BUCKET }}/tmp_tables/
56+
DBT_TEST_ATHENA_REGION_NAME: ${{ vars.DBT_TEST_ATHENA_REGION_NAME }}
57+
DBT_TEST_ATHENA_DATABASE: awsdatacatalog
58+
DBT_TEST_ATHENA_SCHEMA: dbt-tests
59+
DBT_TEST_ATHENA_WORK_GROUP: athena-dbt-tests
60+
DBT_TEST_ATHENA_THREADS: 16
61+
DBT_TEST_ATHENA_POLL_INTERVAL: 0.5
62+
DBT_TEST_ATHENA_NUM_RETRIES: 3
63+
64+
jobs:
65+
integration-tests:
66+
runs-on: ${{ inputs.os }}
67+
steps:
68+
- uses: actions/checkout@v4
69+
with:
70+
ref: ${{ inputs.branch }}
71+
repository: ${{ inputs.repository }}
72+
- uses: actions/setup-python@v5
73+
with:
74+
python-version: ${{ inputs.python-version }}
75+
- uses: pypa/hatch@install
76+
- uses: aws-actions/configure-aws-credentials@v4
77+
with:
78+
role-to-assume: arn:aws:iam::${{ secrets.AWS_ACCOUNT_ID }}:role/${{ secrets.ASSUMABLE_ROLE_NAME }}
79+
aws-region: ${{ vars.DBT_TEST_ATHENA_REGION_NAME }}
80+
- run: hatch run integration-tests
81+
working-directory: ./${{ inputs.package }}

.github/workflows/code-quality.yml

-39
This file was deleted.

.github/workflows/integration-tests.yml

-64
This file was deleted.

.github/workflows/publish-internal.yml

-102
This file was deleted.

.github/workflows/publish-pypi.yml

-85
This file was deleted.

0 commit comments

Comments
 (0)