forked from IBM/ibm-generative-ai
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (34 loc) · 893 Bytes
/
e2e-test.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
name: E2E Tests
on:
push:
branches: [ "main" ]
schedule:
- cron: '0 6 * * *'
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 20
strategy:
fail-fast: false
matrix:
python-version: ["3.11"]
steps:
- uses: actions/checkout@v4
- name: Install poetry
run: pipx install poetry
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'poetry'
- name: Install dependencies
run: poetry install --no-interaction --all-extras
- name: Run E2E Tests
env:
GENAI_API: ${{ vars.GENAI_API }}
GENAI_KEY: ${{ secrets.GENAI_KEY }}
run: poetry run pytest -m 'e2e' --no-cov