Skip to content
This repository has been archived by the owner on Sep 19, 2024. It is now read-only.

work on examples

work on examples #55

Workflow file for this run

name: Run tests
on:
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref_name }}
cancel-in-progress: true
jobs:
test:
permissions:
contents: "read"
id-token: "write"
runs-on: ubuntu-latest
services:
falkordb:
image: falkordb/falkordb:latest
ports:
- 6379:6379
ollama:
image: ollama/ollama:latest
ports:
- 1434:11434
volumes:
- ollama:/root/.ollama
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.x # Update with desired Python version
- name: Cache Poetry virtualenv
id: cache
uses: actions/cache@v4
with:
path: ~/.poetry/virtualenvs
key: ${{ runner.os }}-poetry-${{ hashFiles('poetry.lock') }}
restore-keys: |
${{ runner.os }}-poetry-
- id: "auth"
uses: "google-github-actions/auth@v2"
with:
credentials_json: ${{ secrets.GCP_SA_KEY }}
- name: "Set up Cloud SDK"
uses: "google-github-actions/setup-gcloud@v2"
with:
version: ">= 363.0.0"
- name: Install Poetry
if: steps.cache.outputs.cache-hit != true
run: |
curl -sSL https://install.python-poetry.org | python3 -
- name: Install dependencies
run: poetry install
- name: Run tests
env:
PROJECT_ID: ${{ secrets.PROJECT_ID }}
REGION: ${{ vars.REGION }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
run: poetry run pytest