Bump Pydantic version (#62) #16
This file contains hidden or 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: Deploy type stubs to S3 | |
| on: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| generate-and-deploy: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v6 | |
| - name: Set up Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: "3.12" | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install pyright | |
| pip install pydantic==2.10.6 | |
| - name: Clean existing typings | |
| run: rm -rf typings | |
| - name: Generate type stubs for narada | |
| run: | | |
| PYTHONPATH=packages/narada-pyodide/src pyright --createstub narada | |
| - name: Generate type stubs for narada_core | |
| run: | | |
| PYTHONPATH=packages/narada-core/src pyright --createstub narada_core | |
| - name: Create zip archive | |
| run: | | |
| cd typings | |
| zip -r ../typings.zip . | |
| cd .. | |
| - name: Configure AWS credentials | |
| uses: aws-actions/configure-aws-credentials@v5 | |
| with: | |
| aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
| aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
| aws-region: ${{ secrets.AWS_REGION }} | |
| - name: Deploy to S3 | |
| run: | | |
| aws s3 cp ./typings.zip ${{ vars.NARADA_PYTHON_SDK_TYPE_STUBS_S3_URI }} |