-
Notifications
You must be signed in to change notification settings - Fork 19
52 lines (45 loc) · 1.25 KB
/
test_suite.yml
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
52
name: Test Suite
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 15
strategy:
matrix:
python-version: ["3.11", "3.10", "3.9"]
env:
EDSL_RUN_MODE: development
OPENAI_API_KEY: ${{ secrets.FAKE_API_KEY }}
GOOGLE_API_KEY: ${{ secrets.FAKE_API_KEY }}
DEEP_INFRA_API_KEY: ${{ secrets.FAKE_API_KEY }}
POETRY_VERSION: "1.7.1"
steps:
- uses: actions/checkout@v3
- name: Set up python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install Poetry
uses: snok/install-poetry@v1
with:
version: ${{ env.POETRY_VERSION }}
- name: Cache Poetry virtualenv
uses: actions/cache@v2
with:
path: ~/.cache/pypoetry/virtualenvs
key: ${{ runner.os }}-poetry-${{ hashFiles('**/poetry.lock') }}
restore-keys: |
${{ runner.os }}-poetry-
- name: Install dependencies
shell: bash
run: poetry install --with dev
- name: Run edsl tests
shell: bash
run: poetry run make test