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
-
Had to play around with how to setup
tmt
to 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 ofCMake
tmt
limitationsCurrently using the defaultWorks now with Extract "package manager" functionality into plugins #2557. Still requires the installation ofubuntu-latest
is not possible because of missing package-manager and potentiallybeakerlib
. Some dependencies could be factored out and installed manually, but because offramework = beakerlib
I don't think it is feasible at the moment.beakerlib
for many tests though/var/tmp/tmt
is 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-action
is the most compatible. Example runbeakerlib
would not have that metadata. It could instead point to the shell script code line instead. For other things like runningpytest --cov
that 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 run
with appropriate steps injected:provision.how = local
: For more complex usage, the user should usetesting-farm
insteadcontext.initiator = GithubCI
: Should be equivalent tohuman
since the environment is very similar to running locallyreport.how = junit
: So far there is no other report that could give a navigable report. Thehtml
report would be nice, but they link to specific files that are not bundledtmt
: combinesetup-tmt
andrun-tmt
for a simpler interfaceBeta Was this translation helpful? Give feedback.
All reactions