Release/5.0.0 #8
This file contains hidden or 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: Makefile CI | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install docker-compose | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y docker-compose | |
- name: Install Docker Compose plugin | |
run: | | |
mkdir -p ~/.docker/cli-plugins/ | |
curl -SL https://github.com/docker/compose/releases/download/v2.29.2/docker-compose-linux-x86_64 -o ~/.docker/cli-plugins/docker-compose | |
chmod +x ~/.docker/cli-plugins/docker-compose | |
- name: build | |
run: cd src; make build | |
- name: containers | |
run: cd src; make containers-with-cpu; sleep 120 | |
- name: Run chat API test | |
run: | | |
curl --request POST \ | |
--url http://localhost:8000/api/v1/chat \ | |
--header 'Content-Type: application/json' \ | |
--header 'User-Agent: insomnia/11.2.0' \ | |
--data '{ | |
"context": "climate", | |
"question": "weather in usa texas?" | |
}' | |