Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version check step #524

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions .github/workflows/generate_client.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Auto generate Client Code

on:
push:
branches: [main]

env:
POETRY_VERSION: "1.8.4"

jobs:
generate-client:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Python + Poetry ${{ env.POETRY_VERSION }}
uses: "./.github/actions/poetry_setup"
with:
python-version: "3.10"
poetry-version: ${{ env.POETRY_VERSION }}
cache-key: client-generation

- name: Install infinity
run: |
pip install libs/infinity_emb[all]

- name: Generate Client
working-directory: libs/client_infinity
run: |
./run_generate_with_hook.sh

- name: Test Generated Client
working-directory: libs/client_infinity
run: |
./run_tests_with_hook.sh

- name: Open a PR
uses: peter-evans/create-pull-request@v7
2 changes: 1 addition & 1 deletion .github/workflows/pypi_release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,4 @@ jobs:
modal-deploy:
needs: publish-to-pypi
uses: ./.github/workflows/release_modal_com.yaml
secrets: inherit
secrets: inherit
Loading