참고소스 수정본
This commit is contained in:
33
참고/instructor-main/.github/workflows/evals.yml
vendored
Normal file
33
참고/instructor-main/.github/workflows/evals.yml
vendored
Normal file
@@ -0,0 +1,33 @@
|
||||
name: Weekly Tests
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
schedule:
|
||||
- cron: "0 0 * * 0" # Runs at 00:00 UTC every Sunday
|
||||
push:
|
||||
branches: [main]
|
||||
paths-ignore:
|
||||
- "**" # Ignore all paths to ensure it only triggers on schedule
|
||||
|
||||
jobs:
|
||||
weekly-tests:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Install uv
|
||||
uses: astral-sh/setup-uv@v4
|
||||
with:
|
||||
enable-cache: true
|
||||
|
||||
- name: Set up Python
|
||||
run: uv python install 3.11
|
||||
|
||||
- name: Install dependencies
|
||||
run: uv sync --all-extras --dev
|
||||
|
||||
- name: Run all tests
|
||||
run: uv run pytest tests/ --asyncio-mode=auto
|
||||
env:
|
||||
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
|
||||
Reference in New Issue
Block a user