-
Notifications
You must be signed in to change notification settings - Fork 29
64 lines (53 loc) · 1.52 KB
/
pytest.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
52
53
54
55
56
57
58
59
60
61
62
63
64
name: pytest
on:
pull_request:
types:
- ready_for_review
- review_requested
- synchronize
- milestoned
paths:
- "**"
- "!.github/**"
- ".github/workflows/pytest.yaml"
- ".github/workflows/pytest-shim.yaml"
# Ignore docs and website things
- "!**.md"
- "!docs/**"
- "!adr/**"
- "!website/**"
- "!netlify.toml"
# Ignore updates to generic github metadata files
- "!CODEOWNERS"
- "!.gitignore"
- "!LICENSE"
# Ignore LFAI-UI things (no Python)
- "!src/leapfrogai_ui/**"
- "!packages/ui/**"
# Declare default permissions as read only.
permissions: read-all
concurrency:
group: pytest-${{ github.ref }}
cancel-in-progress: true
jobs:
pytest:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c #v5.0.0
with:
python-version-file: 'pyproject.toml'
- name: Build Repeater
env:
LOCAL_VERSION: dev
run: |
make docker-repeater
- name: Run Repeater
run: docker run -p 50051:50051 -d --name=repeater ghcr.io/defenseunicorns/leapfrogai/repeater:dev
- name: Install Python Deps
run: pip install "." "src/leapfrogai_api" "src/leapfrogai_sdk"
- name: Run Pytest
run: python -m pytest tests/pytest -v
env:
LFAI_RUN_REPEATER_TESTS: true