Skip to content

Commit 53374d4

Browse files
committed
Add upstream tmt tests
Signed-off-by: Cristian Le <[email protected]>
1 parent dfe9af7 commit 53374d4

File tree

2 files changed

+31
-4
lines changed

2 files changed

+31
-4
lines changed

.packit.yaml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,27 +27,35 @@ _:
2727
- &build-in-scikit-build
2828
<<: *build-in-packit
2929
owner: "@scikit-build"
30-
- &tests
30+
- &tests-downstream
3131
job: tests
3232
fmf_path: .distro
33+
- &tests-upstream
34+
job: tests
35+
skip_build: true
3336

3437
jobs:
3538
# Upstream jobs
3639
- <<: *build-in-scikit-build
3740
trigger: release
3841
project: release
39-
- <<: *tests
42+
- <<: *tests-downstream
4043
trigger: release
4144
- <<: *build-in-scikit-build
4245
trigger: commit
4346
branch: main
4447
project: nightly
45-
- <<: *tests
48+
- <<: *tests-downstream
49+
trigger: commit
50+
branch: main
51+
- <<: *tests-upstream
4652
trigger: commit
4753
branch: main
4854
- <<: *build-in-packit
4955
trigger: pull_request
50-
- <<: *tests
56+
- <<: *tests-downstream
57+
trigger: pull_request
58+
- <<: *tests-upstream
5159
trigger: pull_request
5260
# Downstream jobs
5361
- job: propose_downstream

tests/plans.fmf

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
/:
2+
inherit: false
3+
4+
/pytest:
5+
summary: Run all pytest
6+
prepare:
7+
- name: Install minimum packages
8+
how: install
9+
package:
10+
- python3-pip
11+
- name: Prepare environment
12+
how: shell
13+
script: |
14+
pip install --user .[test]
15+
discover:
16+
how: fmf
17+
filter: "tag: pytest"
18+
execute:
19+
how: tmt

0 commit comments

Comments
 (0)