File tree Expand file tree Collapse file tree 4 files changed +88
-8
lines changed Expand file tree Collapse file tree 4 files changed +88
-8
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ actions:
22
22
jobs :
23
23
# Copr builds for Fedora
24
24
- job : copr_build
25
- trigger : pull_request
25
+ trigger : ignore
26
26
packages : [ramalama-fedora]
27
27
enable_net : true
28
28
targets : &fedora_copr_targets
32
32
33
33
# Copr builds for CentOS Stream
34
34
- job : copr_build
35
- trigger : pull_request
35
+ trigger : ignore
36
36
enable_net : true
37
37
packages : [ramalama-centos]
38
38
targets : ¢os_copr_targets
@@ -50,12 +50,14 @@ jobs:
50
50
# Tests for Fedora
51
51
- job : tests
52
52
trigger : pull_request
53
+ skip_build : true
53
54
packages : [ramalama-fedora]
54
- targets : *fedora_copr_targets
55
+ targets :
56
+ - fedora-latest
55
57
56
58
# Tests for CentOS Stream
57
59
- job : tests
58
- trigger : pull_request
60
+ trigger : ignore
59
61
packages : [ramalama-centos]
60
62
targets : *centos_copr_targets
61
63
Original file line number Diff line number Diff line change @@ -221,7 +221,7 @@ process_all_targets() {
221
221
222
222
# build ramalama container image first, as other images inherit from it
223
223
build " ramalama" " $command "
224
- for i in container-images/* ; do
224
+ for i in ./ container-images/* ; do
225
225
i=$( basename " $i " )
226
226
# skip these directories
227
227
if [[ " $i " =~ ^(scripts| ramalama)$ ]]; then
Original file line number Diff line number Diff line change 1
- summary: Check installed rpm metadata
2
1
discover:
3
- how: shell
2
+ how: fmf
4
3
execute:
5
4
how: tmt
6
- script: rpm -qi python3-ramalama
5
+
6
+ provision:
7
+ how: artemis
8
+ hardware:
9
+ gpu:
10
+ device-name: GK210 (Tesla K80)
11
+ vendor-name: NVIDIA
12
+
13
+ /gpu_info:
14
+ summary: Display GPU info
15
+ discover+:
16
+ test: /test/tmt/gpu_info
17
+
18
+ /validate:
19
+ discover+:
20
+ test: /test/tmt/validate
21
+
22
+ /unit:
23
+ discover+:
24
+ test: /test/tmt/unit
25
+
26
+ /bats-docker:
27
+ discover+:
28
+ test: /test/tmt/bats-docker
29
+
30
+ /bats-nocontainer:
31
+ discover+:
32
+ test: /test/tmt/bats-nocontainer
Original file line number Diff line number Diff line change
1
+ #/rpm:
2
+ # summary: Verify rpm installation
3
+ # test: rpm -qi python3-ramalama
4
+ require:
5
+ - bats
6
+ - black
7
+ - codespell
8
+ - flake8
9
+ - isort
10
+ - jq
11
+ - make
12
+ - perl-Clone
13
+ - perl-FindBin
14
+ - pipx
15
+ - podman-docker
16
+ - pytest
17
+ - python3-argcomplete
18
+ - shellcheck
19
+
20
+ /gpu_info:
21
+ summary: Display GPU info
22
+ test: lshw -C display
23
+ require:
24
+ - lshw
25
+
26
+ /validate:
27
+ summary: Run validate test
28
+ test: make -C $TMT_TREE validate
29
+
30
+ /unit:
31
+ summary: Run unit tests
32
+ test: make -C $TMT_TREE unit-tests
33
+
34
+ /bats-docker:
35
+ summary: Run system tests in container
36
+ test: |
37
+ pushd $TMT_TREE
38
+ .github/scripts/install-ollama.sh
39
+ ./container_build.sh build ramalama
40
+ make bats-docker
41
+ popd
42
+ duration: 30m
43
+
44
+ /bats-nocontainer:
45
+ summary: Run system tests on host
46
+ test: |
47
+ pushd $TMT_TREE
48
+ .github/scripts/install-ollama.sh
49
+ ./container-images/scripts/build_llama_and_whisper.sh
50
+ make bats-nocontainer
51
+ popd
52
+ duration: 30m
You can’t perform that action at this time.
0 commit comments