Skip to content

Commit 9ac3f7e

Browse files
committed
wip
1 parent f554204 commit 9ac3f7e

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/test.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Test
2+
3+
on: [push, pull_request]
4+
5+
permissions:
6+
contents: read
7+
8+
jobs:
9+
test:
10+
runs-on: ubuntu-latest
11+
environment: test
12+
env:
13+
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
14+
strategy:
15+
matrix:
16+
python-version: ["3.10", "3.11", "3.12", "3.13"]
17+
steps:
18+
- uses: actions/checkout@v4
19+
- name: Set up Python ${{ matrix.python-version }}
20+
uses: actions/setup-python@v5
21+
with:
22+
python-version: ${{ matrix.python-version }}
23+
cache: pip
24+
cache-dependency-path: pyproject.toml
25+
- name: Install dependencies
26+
run: |
27+
pip install -e '.[test]'
28+
- name: Run tests
29+
run: |
30+
python -m pytest

0 commit comments

Comments
 (0)