Skip to content

Commit a0e43d0

Browse files
committed
test integration with ANSIBLE_TEST_PYTHON_VERSION
1 parent 78cb906 commit a0e43d0

File tree

2 files changed

+29
-29
lines changed

2 files changed

+29
-29
lines changed

.github/workflows/pull-request-management.yml

+28-28
Original file line numberDiff line numberDiff line change
@@ -628,34 +628,34 @@ jobs:
628628
# cd ansible_collections/arista/avd/
629629
# ansible-test units -vv
630630

631-
# ansible_test_integration:
632-
# name: Run ansible-test integration test cases
633-
# runs-on: ubuntu-latest
634-
# needs: [ file-changes, ansible_test_sanity]
635-
# steps:
636-
# - uses: actions/checkout@v4
637-
# - name: Set up Python 3
638-
# uses: actions/setup-python@v5
639-
# id: pipcache
640-
# with:
641-
# python-version: |
642-
# 3.12
643-
# 3.13
644-
# cache: 'pip'
645-
# cache-latest: true
646-
# - name: Download wheel artifact
647-
# uses: actions/download-artifact@v3
648-
# with:
649-
# name: pyavd-wheel
650-
# path: ./artifacts
651-
# - name: 'Install Python requirements'
652-
# run: |
653-
# pip install "ansible-core<2.19.0" --upgrade
654-
# pip install ./artifacts/pyavd-5.2.0.dev2-py3-none-any.whl
655-
# - name: 'Run ansible-test integration test cases'
656-
# run: |
657-
# cd ansible_collections/arista/avd/
658-
# ansible-test integration -vv
631+
ansible_test_integration:
632+
name: Run ansible-test integration test cases
633+
runs-on: ubuntu-latest
634+
needs: [ file-changes, ansible_test_sanity]
635+
steps:
636+
- uses: actions/checkout@v4
637+
- name: Set up Python 3
638+
uses: actions/setup-python@v5
639+
id: pipcache
640+
with:
641+
python-version: |
642+
3.12
643+
3.13
644+
cache: 'pip'
645+
cache-latest: true
646+
- name: Download wheel artifact
647+
uses: actions/download-artifact@v3
648+
with:
649+
name: pyavd-wheel
650+
path: ./artifacts
651+
- name: 'Install Python requirements'
652+
run: |
653+
pip install "ansible-core<2.19.0" -r ansible_collections/arista/avd/requirements-dev.txt --upgrade
654+
pip install ./artifacts/pyavd-5.2.0.dev2-py3-none-any.whl
655+
- name: 'Run ansible-test integration test cases'
656+
run: |
657+
cd ansible_collections/arista/avd/
658+
ansible-test integration -vv
659659
660660
# ansible_lint:
661661
# name: Run ansible-lint test case

ansible_collections/arista/avd/plugins/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
PYTHON_AVD_PATH = Path(__file__).parents[4] / "python-avd"
1111
RUNNING_FROM_SOURCE_PATH = PYTHON_AVD_PATH / "pyavd/running_from_src.txt"
12-
RUNNING_FROM_SOURCE = RUNNING_FROM_SOURCE_PATH.exists() and not environ.get("AVD_NEVER_RUN_FROM_SOURCE")
12+
RUNNING_FROM_SOURCE = RUNNING_FROM_SOURCE_PATH.exists() and not environ.get("ANSIBLE_TEST_PYTHON_VERSION")
1313

1414
if RUNNING_FROM_SOURCE:
1515
import sys

0 commit comments

Comments
 (0)