-
Notifications
You must be signed in to change notification settings - Fork 4
47 lines (37 loc) · 1.14 KB
/
run_tests.yaml
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
37
38
39
40
41
42
43
44
45
46
47
name: run tests
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11"]
env:
GROQ_API_KEY: ${{ secrets.GROQ_API_KEY }}
GROQ_API_KEY_1: ${{ secrets.GROQ_API_KEY_1 }}
GROQ_API_KEY_2: ${{ secrets.GROQ_API_KEY_2 }}
GROQ_API_KEY_3: ${{ secrets.GROQ_API_KEY_3 }}
GROQ_API_KEY_4: ${{ secrets.GROQ_API_KEY_4 }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
- name: Install dependencies and run tests
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
GROQ_API_KEY: ${{ secrets.GROQ_API_KEY }}
run: |
# Install root project dependencies which will include subprojects
poetry install --with dev
# Run tests
poetry run pytest