Open eltociear opened 1 day ago
@eltociear awesome! can you also please add a github action that runs bash scripts/generate_openapi_code.sh
on push ?
@creatorrr Is the following correct?
https://github.com/julep-ai/julep/pull/549/commits/1176d23e11165f6f0dd3c1030be2a6412b11b9f9
No, you'd have to install all of the dependencies needed (npm, typescript, python, poetry, agents_api dependencies) and then make sure that the result is committed back. Something like this:
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install and configure Poetry
uses: snok/install-poetry@v1
- name: Configure Poetry to use .venv
run: |
cd agents-api
poetry config virtualenvs.in-project true
- name: Cache Poetry virtualenv
uses: actions/cache@v4
with:
path: agents-api/.venv
key: ${{ runner.os }}-agents-api-poetry-${{ hashFiles('agents-api/poetry.lock') }}
restore-keys: |
${{ runner.os }}-agents-api-poetry-
- name: Install dependencies
run: |
cd agents-api
poetry install
### Install npm / typespec etc
### Run the script after this
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: "refactor: Lint agents-api (CI)"
branch: ${{ github.head_ref }}
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
overriden -> overridden