Skip to content

Commit 21a0d9a

Browse files
committed
run unit test with downloading artifacts
1 parent af9b453 commit 21a0d9a

File tree

1 file changed

+18
-13
lines changed

1 file changed

+18
-13
lines changed

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

+18-13
Original file line numberDiff line numberDiff line change
@@ -559,9 +559,6 @@ jobs:
559559
with:
560560
python-version: |
561561
3.10
562-
3.11
563-
3.12
564-
3.13
565562
cache: 'pip'
566563
cache-latest: true
567564
- name: Download wheel artifact
@@ -570,14 +567,22 @@ jobs:
570567
name: pyavd-wheel
571568
path: ./artifacts
572569

573-
- name: Install the wheel file
574-
run: |
575-
# Verify the downloaded artifact
576-
echo "Contents of artifacts directory:"
577-
ls -al ./artifacts
570+
# - name: Install the wheel file
571+
# run: |
572+
# # Verify the downloaded artifact
573+
# echo "Contents of artifacts directory:"
574+
# ls -al ./artifacts
578575

579-
# Install the wheel file
576+
# # Install the wheel file
577+
# pip install ./artifacts/pyavd-5.2.0.dev2-py3-none-any.whl
578+
- name: 'Install Python requirements'
579+
run: |
580+
pip install mock pytest pytest-mock pytest-xdist pyyaml "ansible-core<2.19.0" --upgrade
580581
pip install ./artifacts/pyavd-5.2.0.dev2-py3-none-any.whl
582+
- name: 'Run ansible-test units test cases'
583+
run: |
584+
cd ansible_collections/arista/avd/
585+
ansible-test units -vv
581586
# - name: Print runner path
582587
# run: |
583588
# WHEEL_CACHE_ROOT="$(pip cache dir)/wheels"
@@ -592,10 +597,10 @@ jobs:
592597
# echo "Full wheel path: $FULL_WHEEL_PATH"
593598
# echo "FULL_WHEEL_PATH=$FULL_WHEEL_PATH" >> $GITHUB_ENV
594599

595-
- name: Use the full pip wheel path
596-
run: |
597-
echo "Full wheel path from environment: $FULL_WHEEL_PATH"
598-
ls -l $FULL_WHEEL_PATH
600+
# - name: Use the full pip wheel path
601+
# run: |
602+
# echo "Full wheel path from environment: $FULL_WHEEL_PATH"
603+
# ls -l $FULL_WHEEL_PATH
599604
# - name: 'Install Python requirements'
600605
# run: |
601606
# pip install "ansible-core<2.19.0" -r .github/requirements-ci.txt --upgrade

0 commit comments

Comments
 (0)