-
Notifications
You must be signed in to change notification settings - Fork 1
52 lines (47 loc) · 1.27 KB
/
test-examples.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
name: Test Cally Examples
on:
pull_request:
branches:
- main
jobs:
build-providers:
uses: ./.github/workflows/build-providers.yaml
pytest:
needs: build-providers
runs-on: ubuntu-latest
strategy:
matrix:
project: ["minimal", "opinionated"]
env:
UV_SYSTEM_PYTHON: true
steps:
# Restore Provider Packages
- uses: actions/checkout@v4
- uses: actions/cache/restore@v4
id: cache
with:
path: build/
key: cally-test-providers
# Cally Install
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
cache: pip
- uses: yezz123/setup-uv@v4
- name: Install Provider Pacakges
run: uv pip install build/**/*.tar.gz
- name: Install Cally
run: uv pip install .
# IDP Install
- uses: actions/checkout@v4
with:
repository: CallyCo-io/cally-examples
path: examples
- name: Install ${{ matrix.project }}
working-directory: examples/${{ matrix.project }}
run: uv pip install .[test]
# Run Tests
- name: Run Pytest for ${{ matrix.project }}
working-directory: examples/${{ matrix.project }}
run: pytest -v