-
-
Notifications
You must be signed in to change notification settings - Fork 1k
36 lines (31 loc) · 948 Bytes
/
test_docs.yml
File metadata and controls
36 lines (31 loc) · 948 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Test Docs
on:
schedule:
- cron: '0 0 1 * *' # Runs at 00:00 on the 1st of every month
jobs:
release:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11"]
steps:
- uses: actions/checkout@v2
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y graphviz libcairo2-dev xdg-utils
- name: Install Poetry
uses: snok/install-poetry@v1.3.1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: "poetry"
- name: Install uv
uses: astral-sh/setup-uv@v4
- name: Install the project
run: uv sync --all-extras
- name: Run tests
run: uv run pytest tests/docs --asyncio-mode=auto
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}