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

Ty/ollama local models #227

Ty/ollama local models

Ty/ollama local models #227

Workflow file for this run

name: Run tests
on:
pull_request:
paths:
- src/**
- tests/**
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Install Chrome
uses: browser-actions/setup-chrome@v1
id: setup-chrome
with:
chrome-version: "stable"
- run: |
echo "CHROME_PATH=${{ steps.setup-chrome.outputs.chrome-path }}" >> $GITHUB_ENV
- name: Checkout
uses: actions/checkout@v3
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 20
- uses: pnpm/action-setup@v3
name: Install pnpm
with:
version: 8
run_install: false
- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
env:
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: "true"
run: pnpm install
- name: Run tests
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
HDR_API_KEY: ${{ secrets.HDR_API_KEY }}
HDR_ENDPOINT: ${{ secrets.HDR_ENDPOINT }}
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
CI: "true"
run: pnpm run test