|
1 | 1 | name: Test |
2 | 2 |
|
3 | 3 | on: |
4 | | - push: |
| 4 | + pull_request: |
5 | 5 | schedule: |
6 | 6 | - cron: '0 0 * * 0' |
7 | 7 |
|
8 | | -permissions: |
9 | | - id-token: write |
10 | | - contents: read |
11 | | - |
12 | 8 | jobs: |
13 | 9 | test: |
14 | | - runs-on: ubuntu-latest |
15 | | - |
16 | | - env: |
17 | | - TEST_TYPE: pyathena |
18 | | - AWS_DEFAULT_REGION: us-west-2 |
19 | | - AWS_ATHENA_S3_STAGING_DIR: s3://laughingman7743-pyathena/github/ |
20 | | - AWS_ATHENA_WORKGROUP: pyathena |
21 | | - AWS_ATHENA_SPARK_WORKGROUP: pyathena-spark |
22 | | - AWS_ATHENA_MANAGED_WORKGROUP: pyathena-managed |
23 | | - |
24 | | - strategy: |
25 | | - fail-fast: false |
26 | | - matrix: |
27 | | - python-version: ['3.10', '3.11', '3.12', '3.13', '3.14'] |
28 | | - |
29 | | - steps: |
30 | | - - name: Checkout |
31 | | - uses: actions/checkout@v4 |
32 | | - |
33 | | - - uses: astral-sh/setup-uv@v5 |
34 | | - with: |
35 | | - python-version: ${{ matrix.python-version }} |
36 | | - enable-cache: true |
37 | | - # TODO: In the case of Python 3.13+, the following error occurs, so install Python using setup-python. |
38 | | - # ../meson.build:44:2: ERROR: Problem encountered: Cannot compile |
39 | | - # `Python.h`. Perhaps you need to install python-dev|python-devel |
40 | | - - uses: actions/setup-python@v5 |
41 | | - with: |
42 | | - python-version: ${{ matrix.python-version }} |
43 | | - if: matrix.python-version == '3.13' || matrix.python-version == '3.14' |
44 | | - - run: | |
45 | | - make tool |
46 | | -
|
47 | | - - name: Configure AWS credentials |
48 | | - uses: aws-actions/configure-aws-credentials@v4 |
49 | | - with: |
50 | | - role-to-assume: arn:aws:iam::676287850544:role/github-actions-oidc-pyathena |
51 | | - role-session-name: PyAthenaTestSession |
52 | | - aws-region: ${{ env.AWS_DEFAULT_REGION }} |
53 | | - |
54 | | - - name: Test |
55 | | - run: | |
56 | | - make tox |
| 10 | + uses: ./.github/workflows/test-suite.yaml |
| 11 | + with: |
| 12 | + test-type: pyathena |
57 | 13 |
|
58 | 14 | test-sqla: |
59 | 15 | needs: [test] |
60 | | - runs-on: ubuntu-latest |
61 | | - |
62 | | - env: |
63 | | - TEST_TYPE: sqla |
64 | | - AWS_DEFAULT_REGION: us-west-2 |
65 | | - AWS_ATHENA_S3_STAGING_DIR: s3://laughingman7743-pyathena/github/ |
66 | | - AWS_ATHENA_WORKGROUP: pyathena |
67 | | - AWS_ATHENA_SPARK_WORKGROUP: pyathena-spark |
68 | | - AWS_ATHENA_MANAGED_WORKGROUP: pyathena-managed |
69 | | - |
70 | | - strategy: |
71 | | - fail-fast: false |
72 | | - matrix: |
73 | | - python-version: ['3.10', '3.11', '3.12', '3.13', '3.14'] |
74 | | - |
75 | | - steps: |
76 | | - - name: Checkout |
77 | | - uses: actions/checkout@v4 |
78 | | - |
79 | | - - uses: astral-sh/setup-uv@v5 |
80 | | - with: |
81 | | - python-version: ${{ matrix.python-version }} |
82 | | - enable-cache: true |
83 | | - - uses: actions/setup-python@v5 |
84 | | - with: |
85 | | - python-version: ${{ matrix.python-version }} |
86 | | - if: matrix.python-version == '3.13' || matrix.python-version == '3.14' |
87 | | - - run: | |
88 | | - make tool |
89 | | -
|
90 | | - - name: Configure AWS credentials |
91 | | - uses: aws-actions/configure-aws-credentials@v4 |
92 | | - with: |
93 | | - role-to-assume: arn:aws:iam::676287850544:role/github-actions-oidc-pyathena |
94 | | - role-session-name: PyAthenaTestSession |
95 | | - aws-region: ${{ env.AWS_DEFAULT_REGION }} |
96 | | - |
97 | | - - name: Test |
98 | | - run: | |
99 | | - make tox |
| 16 | + uses: ./.github/workflows/test-suite.yaml |
| 17 | + with: |
| 18 | + test-type: sqla |
100 | 19 |
|
101 | 20 | test-sqla-async: |
102 | 21 | needs: [test-sqla] |
103 | | - runs-on: ubuntu-latest |
104 | | - |
105 | | - env: |
106 | | - TEST_TYPE: sqla_async |
107 | | - AWS_DEFAULT_REGION: us-west-2 |
108 | | - AWS_ATHENA_S3_STAGING_DIR: s3://laughingman7743-pyathena/github/ |
109 | | - AWS_ATHENA_WORKGROUP: pyathena |
110 | | - AWS_ATHENA_SPARK_WORKGROUP: pyathena-spark |
111 | | - AWS_ATHENA_MANAGED_WORKGROUP: pyathena-managed |
112 | | - |
113 | | - strategy: |
114 | | - fail-fast: false |
115 | | - matrix: |
116 | | - python-version: ['3.10', '3.11', '3.12', '3.13', '3.14'] |
117 | | - |
118 | | - steps: |
119 | | - - name: Checkout |
120 | | - uses: actions/checkout@v4 |
121 | | - |
122 | | - - uses: astral-sh/setup-uv@v5 |
123 | | - with: |
124 | | - python-version: ${{ matrix.python-version }} |
125 | | - enable-cache: true |
126 | | - - uses: actions/setup-python@v5 |
127 | | - with: |
128 | | - python-version: ${{ matrix.python-version }} |
129 | | - if: matrix.python-version == '3.13' || matrix.python-version == '3.14' |
130 | | - - run: | |
131 | | - make tool |
132 | | -
|
133 | | - - name: Configure AWS credentials |
134 | | - uses: aws-actions/configure-aws-credentials@v4 |
135 | | - with: |
136 | | - role-to-assume: arn:aws:iam::676287850544:role/github-actions-oidc-pyathena |
137 | | - role-session-name: PyAthenaTestSession |
138 | | - aws-region: ${{ env.AWS_DEFAULT_REGION }} |
139 | | - |
140 | | - - name: Test |
141 | | - run: | |
142 | | - make tox |
| 22 | + uses: ./.github/workflows/test-suite.yaml |
| 23 | + with: |
| 24 | + test-type: sqla_async |
0 commit comments