initial action for generating client #1
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: Auto generate Client Code | ||
on: | ||
push: | ||
branches: [main] | ||
env: | ||
POETRY_VERSION: "1.8.4" | ||
jobs: | ||
publish-to-pypi: | ||
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 }} | ||
working-directory: ${{ matrix.package.workdir }} | ||
cache-key: release | ||
- 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_tets_with_hook.sh | ||
- name: "Open a PR" | ||
uses: peter-evans/create-pull-request@v7 |