ansible-test-gh-action icon indicating copy to clipboard operation
ansible-test-gh-action copied to clipboard

Add exclude option

Open thenets opened this issue 2 years ago • 2 comments

Would be great to have the --exclude parameter exposed.

For example, I don't want to run the linter against my docs/, since it's generated automatically.

thenets avatar Jan 19 '23 16:01 thenets

If you don't want to skip only few test types (pylint!skip) a solution could be to use the option pre-test-cmd: to delete the directories you don't want to test.

          testing-type: sanity
          pre-test-cmd: rm -rf <directory to ignore>

itdove avatar Jan 27 '23 21:01 itdove

@thenets it seems like what you're asking is skipping the check on docs changes? I'm pretty sure --exclude does not do what you think it does. It allows skipping integration test targets by name.

webknjaz avatar Mar 09 '23 02:03 webknjaz