Merge pull request #246 from Toloka/restrict-tenacity-version #153
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: Code generation | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
generate-stubs: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v3 | |
with: | |
python-version: "3.10" | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install https://github.com/Toloka/stubmaker/archive/refs/heads/main.zip | |
pip install .[all] | |
pip install "attrs>=21.0.0" | |
- name: Generate stubs | |
run: | | |
python ./misc/stubmaker/bin/make_stubs $(./misc/stubmaker/bin/make_stubs/tolokakit_args.sh) | |
- name: Create Pull Request | |
uses: peter-evans/create-pull-request@v4 | |
with: | |
add-paths: 'src/*.pyi' | |
commit-message: '[Autogenerated] stub files' | |
delete-branch: true | |
branch: stubs | |
title: 'Autogenerated stubs' | |
body: 'This pull request contains autogenerated stubs for recent commits into main.' | |
labels: 'autogenerated,stubs' | |