11name : Test
22
33on :
4- push :
4+ pull_request :
55 schedule :
66 - cron : ' 0 0 * * 0'
77
@@ -11,45 +11,18 @@ permissions:
1111
1212jobs :
1313 test :
14- runs-on : ubuntu-latest
15-
16- env :
17- AWS_DEFAULT_REGION : us-west-2
18- AWS_ATHENA_S3_STAGING_DIR : s3://laughingman7743-pyathena/github/
19- AWS_ATHENA_WORKGROUP : pyathena
20- AWS_ATHENA_SPARK_WORKGROUP : pyathena-spark
21- AWS_ATHENA_MANAGED_WORKGROUP : pyathena-managed
22-
23- strategy :
24- fail-fast : false
25- matrix :
26- python-version : ['3.10', '3.11', '3.12', '3.13', '3.14']
27-
28- steps :
29- - name : Checkout
30- uses : actions/checkout@v4
31-
32- - uses : astral-sh/setup-uv@v5
33- with :
34- python-version : ${{ matrix.python-version }}
35- enable-cache : true
36- # TODO: In the case of Python 3.13+, the following error occurs, so install Python using setup-python.
37- # ../meson.build:44:2: ERROR: Problem encountered: Cannot compile
38- # `Python.h`. Perhaps you need to install python-dev|python-devel
39- - uses : actions/setup-python@v5
40- with :
41- python-version : ${{ matrix.python-version }}
42- if : matrix.python-version == '3.13' || matrix.python-version == '3.14'
43- - run : |
44- make tool
45-
46- - name : Configure AWS credentials
47- uses : aws-actions/configure-aws-credentials@v4
48- with :
49- role-to-assume : arn:aws:iam::676287850544:role/github-actions-oidc-pyathena
50- role-session-name : PyAthenaTestSession
51- aws-region : ${{ env.AWS_DEFAULT_REGION }}
52-
53- - name : Test
54- run : |
55- make tox
14+ uses : ./.github/workflows/test-suite.yaml
15+ with :
16+ test-type : pyathena
17+
18+ test-sqla :
19+ needs : [test]
20+ uses : ./.github/workflows/test-suite.yaml
21+ with :
22+ test-type : sqla
23+
24+ test-sqla-async :
25+ needs : [test-sqla]
26+ uses : ./.github/workflows/test-suite.yaml
27+ with :
28+ test-type : sqla_async
0 commit comments