Skip to content

feat: add recipe caching and extraction functionality #11

feat: add recipe caching and extraction functionality

feat: add recipe caching and extraction functionality #11

Workflow file for this run

name: Tests
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install uv
uses: astral-sh/setup-uv@v4
with:
enable-cache: true
- name: Install dependencies
run: uv sync --group dev
- name: Run tests
run: uv run pytest tests/ -v
- name: Run linter
run: uv run ruff check api_agent/
docker-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build Docker image
run: docker build -t api-agent:test .
- name: Test Docker image starts
run: |
docker run -d --name test-container \
-e OPENAI_API_KEY=test \
-p 3000:3000 \
api-agent:test
sleep 5
docker logs test-container
docker stop test-container