forked from agiresearch/AIOS
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
47 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# This workflow will install Python dependencies, run tests and lint with a single version of Python | ||
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python | ||
|
||
name: AIOS application | ||
|
||
on: | ||
push: | ||
branches: [ "main" ] | ||
pull_request: | ||
branches: [ "main" ] | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python 3.10 | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: "3.10" | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | ||
- name: Git Clone Action | ||
# You may pin to the exact commit or the version. | ||
# uses: sudosubin/git-clone-action@8a93ce24d47782e30077508cccacf8a05a891bae | ||
uses: sudosubin/git-clone-action@v1.0.1 | ||
with: | ||
# Repository owner and name. Ex: sudosubin/git-clone-action | ||
repository: agiresearch/Cerebrum # optional, default is ${{ github.repository }} | ||
- name: Install cerebrum special edition | ||
run: | | ||
python -m pip install -e Cerebrum/ | ||
- name: Run AIOS kernel in background | ||
run: | | ||
nohup uvicorn runtime.kernel:app --reload > "server.log" 2>&1 & | ||
- name: run the run-agent code | ||
run: | | ||
run-agent --llm_name gemini-1.5-flash --llm_backend google --agent_name_or_path demo_author/demo_agent --task "Tell me what is core idea of AIOS" --aios_kernel_url http://localhost:8000 | ||