-
Notifications
You must be signed in to change notification settings - Fork 108
54 lines (46 loc) · 1.75 KB
/
test-suite.yaml
File metadata and controls
54 lines (46 loc) · 1.75 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: Test Suite
on:
workflow_call:
inputs:
test-type:
required: true
type: string
jobs:
run:
runs-on: ubuntu-latest
env:
TEST_TYPE: ${{ inputs.test-type }}
AWS_DEFAULT_REGION: us-west-2
AWS_ATHENA_S3_STAGING_DIR: s3://laughingman7743-pyathena/github/
AWS_ATHENA_WORKGROUP: pyathena
AWS_ATHENA_SPARK_WORKGROUP: pyathena-spark
AWS_ATHENA_MANAGED_WORKGROUP: pyathena-managed
strategy:
fail-fast: false
matrix:
python-version: ['3.10', '3.11', '3.12', '3.13', '3.14']
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
with:
python-version: ${{ matrix.python-version }}
enable-cache: true
# TODO: In the case of Python 3.13+, the following error occurs, so install Python using setup-python.
# ../meson.build:44:2: ERROR: Problem encountered: Cannot compile
# `Python.h`. Perhaps you need to install python-dev|python-devel
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
with:
python-version: ${{ matrix.python-version }}
if: matrix.python-version == '3.13' || matrix.python-version == '3.14'
- run: |
make tool
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@8df5847569e6427dd6c4fb1cf565c83acfa8afa7 # v6.0.0
with:
role-to-assume: arn:aws:iam::676287850544:role/github-actions-oidc-pyathena
role-session-name: PyAthenaTestSession
aws-region: ${{ env.AWS_DEFAULT_REGION }}
- name: Test
run: |
make tox