salt-extensions / salt-extension-copier

Create and maintain Salt extensions using Copier
https://salt-extensions.github.io/salt-extension-copier/
Apache License 2.0
10 stars 3 forks source link

Improve test workflows version handling #57

Closed lkubb closed 2 months ago

lkubb commented 2 months ago

The basic workflows have a bug that means the tests only run against .0 releases. While they are mostly unmaintained and only intended for migration from the deprecated create-salt-extension tool, this caused some confusion here: https://github.com/salt-extensions/saltext-cassandra/commit/eefad8d3ac49b548b0c7b90c5023594dc579500c

It's a valid feature request to be able to specify minor versions in max_salt_version though, so let's just fix the basic workflows as well.

Also generates a smarter test matrix on Linux, reducing the number of generated test runs, and sets the max-parallel accordingly.

Also introduces a new question (os_support) to influence which systems tests are run against with the enhanced workflow. Some extensions (like saltext-snap) don't make sense on all OS.