Skip to content

Commit 9fcdde6

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

File tree

2 files changed

+51
-4
lines changed

2 files changed

+51
-4
lines changed

.packit.yaml

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,27 +27,39 @@ _:
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
38+
targets:
39+
- fedora-development
3340

3441
jobs:
3542
# Upstream jobs
3643
- <<: *build-in-scikit-build
3744
trigger: release
3845
project: release
39-
- <<: *tests
46+
- <<: *tests-downstream
4047
trigger: release
4148
- <<: *build-in-scikit-build
4249
trigger: commit
4350
branch: main
4451
project: nightly
45-
- <<: *tests
52+
- <<: *tests-downstream
53+
trigger: commit
54+
branch: main
55+
- <<: *tests-upstream
4656
trigger: commit
4757
branch: main
4858
- <<: *build-in-packit
4959
trigger: pull_request
50-
- <<: *tests
60+
- <<: *tests-downstream
61+
trigger: pull_request
62+
- <<: *tests-upstream
5163
trigger: pull_request
5264
# Downstream jobs
5365
- job: propose_downstream

tests/plans.fmf

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
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+
# Pip install everything
11+
- python3-pip
12+
# Test everything we got
13+
- gcc-c++
14+
- gfortran
15+
- cmake
16+
- ninja-build
17+
# For FindPython
18+
- python3-devel
19+
# There are tests that use FetchContent git
20+
- git
21+
- name: Prepare environment
22+
how: shell
23+
script: |
24+
# Fake a git archive
25+
cat << EOF > .git_archival.txt
26+
node: 47431d4eefbac9c3a7c49e62c73e624b932023eb
27+
node-date: 2025-02-27T16:18:39-05:00
28+
describe-name: v0.11.0
29+
EOF
30+
pip install --user .[test]
31+
discover:
32+
how: fmf
33+
filter: "tag: pytest"
34+
execute:
35+
how: tmt

0 commit comments

Comments
 (0)