-
Notifications
You must be signed in to change notification settings - Fork 4
51 lines (41 loc) · 1.33 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
48
49
50
51
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 }}
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: Debug directory structure
run: |
pwd
ls -la
- name: Install packages in correct order
run: |
cd core && poetry install && cd ..
if [ -d "coding" ]; then cd coding && poetry install && cd ..; fi
if [ -d "web" ]; then cd web && poetry install && cd ..; fi
if [ -d "tools" ]; then cd tools && poetry install && cd ..; fi
if [ -d "router" ]; then cd router && poetry install && cd ..; fi
if [ -d "examples" ]; then cd examples && poetry install; fi
- name: Run tests
run: poetry run python -m pytest
env:
GROQ_API_KEY: ${{ secrets.GROQ_API_KEY }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}