-
Notifications
You must be signed in to change notification settings - Fork 2
45 lines (44 loc) · 1.27 KB
/
connectors.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
name: CI bpm-ai-connectors-c8
on:
push:
branches:
- main
paths:
- 'bpm-ai-connectors-c8/**'
- '.github/workflows/connectors.yml'
jobs:
pytest:
defaults:
run:
working-directory: ./bpm-ai-connectors-c8/tests
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
-
name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: '3.11'
-
name: Set up poetry
uses: abatilo/actions-poetry@v2
with:
poetry-version: "1.6.1"
-
name: Create local environment in project for caching
run: |
poetry config virtualenvs.create true --local
poetry config virtualenvs.in-project true --local
-
uses: actions/cache@v3
name: Set up cache based on dependencies lock file
with:
path: ./bpm-ai-connectors-c8/.venv
key: venv-${{ hashFiles('**/poetry.lock') }}
-
name: Install dependencies
run: poetry install --no-root --no-cache
-
name: Run pytest
run: ZEEBE_TEST_IMAGE_TAG=8.4.0 INFERENCE_IMAGE=holisticon/bpm-ai-inference:latest-cpu OPENAI_API_KEY=${{ secrets.OPENAI_API_KEY }} poetry run pytest