Skip to content

Commit

Permalink
add evals workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jxnl committed Nov 26, 2023
1 parent 49e78aa commit 3d81809
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/evals.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Weekly Tests

on:
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

- name: Cache Poetry virtualenv
uses: actions/cache@v3
with:
path: ~/.cache/pypoetry/virtualenvs
key: ${{ runner.os }}-poetry-${{ hashFiles('**/poetry.lock') }}
restore-keys: |
${{ runner.os }}-poetry-
- name: Install Poetry
uses: snok/install-poetry@v1.3.1

- name: Install dependencies
run: poetry install --with dev

- name: Run all tests
run: poetry run pytest tests/

0 comments on commit 3d81809

Please sign in to comment.