forked from youtype/mypy_boto3_builder
46 lines (44 loc) · 1.38 KB
/
stubs_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
name: boto3-stubs consistency
on:
schedule:
- cron: "0 0 * * *"
workflow_dispatch:
inputs:
boto3_version:
description: Target boto3 version
required: false
jobs:
check-stubs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Extract versions
id: vars
uses: actions/github-script@v6
with:
script: |
const { setupGlobals, extractVersionsFromInput } = require('./.github/workflows/helpers.js')
setupGlobals({ core, context, fetch })
await extractVersionsFromInput()
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.11"
- name: Install dependencies
run: |
python -m pip install poetry pip
poetry config virtualenvs.create false
poetry install -n
- name: Install boto3
env:
BOTO3_VERSION: ${{ steps.vars.outputs.boto3-version }}
BOTOCORE_VERSION: ${{ steps.vars.outputs.botocore-version }}
run: |
poetry run pip install -U boto3==${BOTO3_VERSION} botocore==${BOTOCORE_VERSION}
poetry run pip install -U botocore-stubs
- name: Uninstall stubs
run: |
poetry run pip uninstall -y boto3-stubs
- name: Check boto3 stubs
run: |
poetry run istub -c ./istub.yml -bid boto3