-
-
Notifications
You must be signed in to change notification settings - Fork 35
81 lines (79 loc) · 2.84 KB
/
aio_sanity_check.yml
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
name: types-aiobotocore sanity
on:
schedule:
- cron: "0 0 1 * *"
workflow_dispatch:
inputs:
boto3_version:
description: Target boto3 version
required: false
jobs:
versions:
runs-on: ubuntu-latest
outputs:
boto3: ${{ steps.boto3.outputs.result }}
botocore: ${{ steps.botocore.outputs.result }}
steps:
- uses: actions/checkout@v4
- name: Extract boto3 version
id: boto3
uses: actions/github-script@v7
with:
result-encoding: string
script: |
const { getBoto3Version, setupGlobals } = require('./.github/workflows/helpers.js')
setupGlobals({ core, context, fetch })
const inputBoto3Version = context.payload.inputs && context.payload.inputs.boto3_version
const version = inputBoto3Version ? inputBoto3Version : await getBoto3Version()
core.notice(`boto3 version ${version}`)
return version
- name: Extract botocore version
id: botocore
uses: actions/github-script@v7
env:
BOTO3_VERSION: ${{ steps.boto3.outputs.result }}
with:
result-encoding: string
script: |
const { getBotocoreVersion } = require('./.github/workflows/helpers.js')
const version = getBotocoreVersion(process.env.BOTO3_VERSION)
core.notice(`botocore version ${version}`)
return version
sanity-check:
runs-on: ubuntu-latest
needs: versions
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version-file: pyproject.toml
- name: Set up uv
run: curl -LsSf https://astral.sh/uv/install.sh | sh
- name: Install the project
run: uv sync --extra check --dev
- name: Install boto3
env:
BOTO3_VERSION: ${{ needs.versions.outputs.boto3 }}
BOTOCORE_VERSION: ${{ needs.versions.outputs.botocore }}
run: |
uv pip install boto3==${BOTO3_VERSION} botocore==${BOTOCORE_VERSION}
uv pip install -U aioboto3
- name: Build master packages
run: |
rm -rf mypy_boto3_output/*
uv run mypy_boto3_builder mypy_boto3_output --product aioboto3 aiobotocore
- name: Install master packages
run: |
bash ./scripts/install_aiobotocore.sh master
- name: Check s3 output
run: |
rm -rf mypy_boto3_output/*
uv run mypy_boto3_builder mypy_boto3_output --product aiobotocore-services -s s3
uv run ./scripts/check_output.py -p ./mypy_boto3_output s3
- name: Build packages
run: |
uv run mypy_boto3_builder mypy_boto3_output --product aiobotocore-services
- name: Check output
run: |
uv run ./scripts/check_output.py -p ./mypy_boto3_output