Skip to content

Commit c9bf4ce

Browse files
authored
ci: Add more integration tests in Fedora (#800)
Re-run the `pytest` in Fedora. This picks up on the latest `gcc` from `rawhide` and so on. --------- Signed-off-by: Cristian Le <[email protected]> Signed-off-by: Cristian Le <[email protected]>
1 parent eb57817 commit c9bf4ce

File tree

20 files changed

+97
-25
lines changed

20 files changed

+97
-25
lines changed

.distro/plans/examples.fmf

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
summary: Documentation examples
22
discover+:
3-
how: fmf
43
filter: "tag: examples"
5-
path: docs
64
execute:
75
how: tmt

.distro/plans/main.fmf

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1+
discover:
2+
how: fmf
3+
path: .
4+
15
adjust+:
26
# Cannot use initiator: fedora-ci reliably yet
37
when: initiator is not defined or initiator != packit
48
discover+:
5-
how: fmf
69
dist-git-source: true
710
dist-git-extract: scikit_build_core-*/
File renamed without changes.

.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

docs/examples/downstream/main.fmf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
summary: Downstream example
12
environment:
23
HAS_PYTEST: true
34
require+:
Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
summary: Nanobind downstream example
1+
summary+: " (nanobind)"
2+
require+:
3+
# TODO: These don't make sense to be packaged in a different package
4+
- python3-nanobind-devel
25
adjust:
6+
when: distro < fedora-41 or distro == centos-stream
37
enabled: false
4-
because: Nanobind is not yet packaged on Fedora
5-
#require+:
6-
# - python3dist(nanobind)
8+
because: They have not packaged nanobind there
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
summary: Pybind downstream example
1+
summary+: " (pybind11)"
22
require+:
33
- gcc-c++
44
- python3dist(pybind11)
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
summary: Abi3 example project
1+
summary+: " (Abi3)"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
summary: C example project
1+
summary+: " (C)"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
summary: Cython example project
1+
summary+: " (cython)"
22
require+:
33
- python3dist(cython)

0 commit comments

Comments
 (0)