Running tmt in GitHub Actions
#2570
LecrisUT
started this conversation in
Show and tell
Replies: 2 comments
-
|
Update: I have a repo up for this: https://github.com/LecrisUT/tmt-actions. It's almost functional, but I would need some help debugging and designing. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Progress report, it WORKS! thanks to #2557 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Had to play around with how to setup
tmtto be executed within GitHub Actions and I wanted to share this. LecrisUT/CMakeExtraUtils#18. Basically the usecase here is to go beyond packaging tests and add some of the main project tests usingtmt. For example in this project, testing against multiple versions ofCMaketmtlimitationsCurrently using the defaultWorks now with Extract "package manager" functionality into plugins #2557. Still requires the installation ofubuntu-latestis not possible because of missing package-manager and potentiallybeakerlib. Some dependencies could be factored out and installed manually, but because offramework = beakerlibI don't think it is feasible at the moment.beakerlibfor many tests though/var/tmp/tmtis not that easy to upload as an artifactWorkaround: Use
report.how = junit, and one of the Github Junit test reporters. So farEnricoMi/publish-unit-test-result-actionis the most compatible. Example runbeakerlibwould not have that metadata. It could instead point to the shell script code line instead. For other things like runningpytest --covthat could be useful to forward the reports.Next steps
Create dedicated GitHub actions to:
setup-tmt: This one is pretty straightforward, and ideally it would not be tied to Fedora packagingrun-tmt: Executetmt runwith appropriate steps injected:provision.how = local: For more complex usage, the user should usetesting-farminsteadcontext.initiator = GithubCI: Should be equivalent tohumansince the environment is very similar to running locallyreport.how = junit: So far there is no other report that could give a navigable report. Thehtmlreport would be nice, but they link to specific files that are not bundledtmt: combinesetup-tmtandrun-tmtfor a simpler interfaceBeta Was this translation helpful? Give feedback.
All reactions