boto3-stubs sanity #767
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: boto3-stubs sanity | |
on: | |
schedule: | |
- cron: "0 0 * * *" | |
workflow_dispatch: | |
inputs: | |
boto3_version: | |
description: Target boto3 version | |
required: false | |
jobs: | |
sanity-check: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- 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: Set up Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: "18" | |
- 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} | |
- name: Install Node.js dependencies | |
run: | | |
npm install -g pyright | |
- name: Build packages | |
env: | |
VERSION: ${{ steps.vars.outputs.version }} | |
run: | | |
rm -rf mypy_boto3_output/* | |
poetry run mypy_boto3_builder mypy_boto3_output --product boto3 boto3-services -b $VERSION -d | |
- name: Install master packages | |
run: | | |
./scripts/install.sh master | |
- name: Check output | |
run: | | |
poetry run python ./scripts/check_output.py -p ./mypy_boto3_output |