mirror of
https://github.com/kennethreitz/instructor.git
synced 2026-06-05 22:50:18 +00:00
35 lines
763 B
YAML
35 lines
763 B
YAML
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: Set up Python 3.11
|
|
uses: actions/setup-python@v4
|
|
with:
|
|
python-version: 3.11
|
|
cache: "poetry"
|
|
|
|
- name: Install Poetry
|
|
uses: snok/install-poetry@v1.3.1
|
|
|
|
- name: Install dependencies
|
|
run: poetry install --with dev,anthropic
|
|
|
|
- name: Run all tests
|
|
run: poetry run pytest tests/
|
|
env:
|
|
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
|