-
-
Notifications
You must be signed in to change notification settings - Fork 505
98 lines (91 loc) · 2.79 KB
/
Copy pathci.yml
File metadata and controls
98 lines (91 loc) · 2.79 KB
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
name: Main CI
on:
push:
branches: [main]
pull_request:
workflow_dispatch:
permissions: {}
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
lint:
name: lint
runs-on: ubuntu-latest
permissions:
contents: read # checkout repository
timeout-minutes: 10
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
persist-credentials: false
- uses: astral-sh/setup-uv@d31148d669074a8d0a63714ba94f3201e7020bc3 # v8.3.0
with:
enable-cache: true
python-version: "3.12"
- run: make install install-tools
- run: make check
test-unit:
name: test-unit / ${{ matrix.package }} / ${{ matrix.python-version }}
needs: lint
runs-on: ubuntu-latest
permissions:
contents: read # checkout repository
timeout-minutes: 15
strategy:
fail-fast: false
matrix:
python-version: ["3.12", "3.13", "3.14"]
package: [giskard-core, giskard-llm, giskard-agents, giskard-checks, giskard-scan]
env:
PACKAGE: ${{ matrix.package }}
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
persist-credentials: false
- uses: astral-sh/setup-uv@d31148d669074a8d0a63714ba94f3201e7020bc3 # v8.3.0
with:
enable-cache: true
python-version: ${{ matrix.python-version }}
- run: make install
- run: make test-unit PACKAGE=$PACKAGE
test-minimal:
name: test-minimal / ${{ matrix.package }}
needs: lint
runs-on: ubuntu-latest
permissions:
contents: read # checkout repository
timeout-minutes: 10
strategy:
fail-fast: false
matrix:
package: [giskard-llm, giskard-agents, giskard-checks]
env:
PACKAGE: ${{ matrix.package }}
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
persist-credentials: false
- uses: astral-sh/setup-uv@d31148d669074a8d0a63714ba94f3201e7020bc3 # v8.3.0
with:
enable-cache: true
python-version: "3.12"
- run: make install-minimal
- run: make test-unit-minimal PACKAGE=$PACKAGE
test-no-providers:
name: test-no-providers / giskard-llm
needs: lint
runs-on: ubuntu-latest
permissions:
contents: read # checkout repository
timeout-minutes: 10
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
persist-credentials: false
- uses: astral-sh/setup-uv@d31148d669074a8d0a63714ba94f3201e7020bc3 # v8.3.0
with:
enable-cache: true
python-version: "3.12"
- run: make install-no-providers
- run: make test-no-providers