Skip to content

Commit 636834e

Browse files
committed
Fix failing tests
Signed-off-by: NilashishC <nchakrab@redhat.com>
1 parent 60b7c20 commit 636834e

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.github/workflows/collection.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
uses: ansible-community/ansible-test-gh-action@release/v1
2525
with:
2626
ansible-core-version: ${{ matrix.ansible }}
27-
collection-root: ansible_platform_collection
27+
collection-root: .
2828
testing-type: sanity
2929
target-python-version: 3.11
3030

Makefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ SHELL=/bin/bash
33
# Prefer python 3.11 but take python3 if 3.11 is not installed
44
PYTHON := $(notdir $(shell for i in python3.11 python3; do command -v $$i; done|sed 1q))
55
RM ?= /bin/rm
6+
ANSIBLE_CONFIG ?= tools/ansible/ansible.cfg
7+
export ANSIBLE_CONFIG
68

79
.PHONY: PYTHON_VERSION clean git_hooks_config \
810
collection-install collection-test collection-docs \
@@ -31,6 +33,10 @@ check_flake8:
3133
check_isort:
3234
tox -e isort -- --check $(CHECK_SYNTAX_FILES)
3335

36+
## Install the collection locally on your machine
37+
collection-install:
38+
ansible-galaxy collection install . --force
39+
3440
## Run the collection sanity tests
3541
collection-sanity: collection-install
3642
cd /tmp/collections/ansible_collections/ansible/platform && \

0 commit comments

Comments
 (0)