Skip to content

Commit 9f4f079

Browse files
committed
Add upstream tmt tests
Signed-off-by: Cristian Le <[email protected]>
1 parent 867661b commit 9f4f079

File tree

2 files changed

+44
-4
lines changed

2 files changed

+44
-4
lines changed

.packit.yaml

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,27 +27,37 @@ _:
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+
identifier: downstream
34+
- &tests-upstream
35+
job: tests
36+
skip_build: true
37+
identifier: upstream
3338

3439
jobs:
3540
# Upstream jobs
3641
- <<: *build-in-scikit-build
3742
trigger: release
3843
project: release
39-
- <<: *tests
44+
- <<: *tests-downstream
4045
trigger: release
4146
- <<: *build-in-scikit-build
4247
trigger: commit
4348
branch: main
4449
project: nightly
45-
- <<: *tests
50+
- <<: *tests-downstream
51+
trigger: commit
52+
branch: main
53+
- <<: *tests-upstream
4654
trigger: commit
4755
branch: main
4856
- <<: *build-in-packit
4957
trigger: pull_request
50-
- <<: *tests
58+
- <<: *tests-downstream
59+
trigger: pull_request
60+
- <<: *tests-upstream
5161
trigger: pull_request
5262
# Downstream jobs
5363
- job: propose_downstream

tests/plans.fmf

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
/:
2+
inherit: false
3+
4+
/pytest:
5+
summary: Run all pytest
6+
prepare:
7+
- name: Install test packages
8+
how: install
9+
package:
10+
- gcc-c++
11+
- gfortran
12+
- cmake
13+
- ninja-build
14+
- python3-pip
15+
- python3-devel
16+
- name: Prepare environment
17+
how: shell
18+
script: |
19+
# Fake a git archive
20+
cat << EOF > .git_archival.txt
21+
node: 47431d4eefbac9c3a7c49e62c73e624b932023eb
22+
node-date: 2025-02-27T16:18:39-05:00
23+
describe-name: v0.11.0
24+
EOF
25+
pip install --user .[test]
26+
discover:
27+
how: fmf
28+
filter: "tag: pytest"
29+
execute:
30+
how: tmt

0 commit comments

Comments
 (0)