@@ -4,8 +4,9 @@ description: Generate a tox ansible matrix for the given scope.
4
4
5
5
inputs :
6
6
scope :
7
- description : Scope to generate matrix for.
8
- required : true
7
+ description : " Scope to generate matrix for. Allowed values: all, sanity, unit, integration"
8
+ required : false
9
+ default : all
9
10
10
11
outputs :
11
12
envlist :
@@ -15,6 +16,10 @@ outputs:
15
16
runs :
16
17
using : composite
17
18
steps :
19
+ - uses : actions/checkout@v4
20
+ with :
21
+ submodules : true
22
+
18
23
# `required: true` seems to be no-op for actions?
19
24
# https://github.com/actions/runner/issues/1070
20
25
- name : Fail early if no scope was provided for matrix generation
@@ -24,10 +29,10 @@ runs:
24
29
script : |
25
30
core.setFailed('A scope needs to be provided to generate matrix.')
26
31
27
- - name : Set up Python
28
- uses : actions /setup-python@v4
32
+ - name : Install the latest version of uv
33
+ uses : astral-sh /setup-uv@v5
29
34
with :
30
- python- version : " 3.11 "
35
+ version : " latest "
31
36
32
37
- name : " Check for tox-ansible.ini file, else add default"
33
38
run : >-
@@ -36,13 +41,10 @@ runs:
36
41
tox-ansible.ini; }
37
42
shell : bash
38
43
39
- - name : " Install tox-ansible from PyPI, includes tox"
40
- shell : bash
41
- run : python -m pip install tox-ansible
42
-
43
44
- name : Generate matrix
44
45
id : generate-matrix
45
46
shell : bash
46
47
run : >
47
- echo output=$(python -m tox --ansible --gh-matrix --matrix-scope ${{ inputs.scope }} --conf tox-ansible.ini)
48
+ echo output=$(uv run tox --ansible --gh-matrix --matrix-scope ${{ inputs.scope }} --conf tox-ansible.ini)
49
+ echo $output
48
50
echo "envlist=$output" >> $GITHUB_OUTPUT
0 commit comments