Skip to content

Commit 586b816

Browse files
Debug ansible-lint and direnv behavior
1 parent 9d453da commit 586b816

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/test.yml

+7-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ on:
88
env:
99
ANSIBLE_ROLES_PATH: roles
1010
ANSIBLE_HASH_BEHAVIOUR: merge
11-
UV_SYSTEM_PYTHON: 1
1211

1312
jobs:
1413
lint:
@@ -23,12 +22,15 @@ jobs:
2322
- name: Set up Python
2423
run: uv python install
2524

26-
- name: Install dependencies.
25+
- name: Install dependencies
2726
run: |
27+
uv -q venv --allow-existing --seed .venv
28+
. .venv/bin/activate
2829
uv -q pip install -r requirements.txt
2930
3031
- name: Run ansible-lint
3132
run: |
33+
. .venv/bin/activate
3234
ansible-lint
3335
3436
molecule:
@@ -48,9 +50,12 @@ jobs:
4850

4951
- name: Install dependencies.
5052
run: |
53+
uv -q venv --allow-existing --seed .venv
54+
. .venv/bin/activate
5155
uv -q pip install -r requirements.txt
5256
ansible-galaxy install -r requirements.yml
5357
5458
- name: Run molecule
5559
run: |
60+
. .venv/bin/activate
5661
molecule test -p ${{ matrix.os }}

0 commit comments

Comments
 (0)