It's possible to not run every version in the matrix? #25406
-
I want to not run every version of python settled at the matrix depending on the file that was modified on the pull request. This could be done? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
Hi @luchiago , There is a new function fromJson() to dynamicly set matrix setting. You could add another job to get the changed file on the pull request and then set matrix setting depending on it. There is a previous ticket for finding pull request file changes : https://github.community/t5/GitHub-Actions/Get-list-of-files-on-pull-request-merge/td-p/41570 Then you could follow my example workflow to set python version in matrix .
|
Beta Was this translation helpful? Give feedback.
-
Thanks, @yanjingzhu, I will implement your suggestion and see if fits the project and give you feedback about it. |
Beta Was this translation helpful? Give feedback.
-
Hi @luchiago, |
Beta Was this translation helpful? Give feedback.
-
Yes, it did. Thank you so much for your help. I don’t have any other questions. |
Beta Was this translation helpful? Give feedback.
Hi @luchiago ,
There is a new function fromJson() to dynamicly set matrix setting.
You could add another job to get the changed file on the pull request and then set matrix setting depending on it.
There is a previous ticket for finding pull request file changes : https://github.community/t5/GitHub-Actions/Get-list-of-files-on-pull-request-merge/td-p/41570
Then you could follow my example workflow to set python version in matrix .