@@ -449,7 +449,7 @@ jobs:
449
449
# restore-keys: |
450
450
# ${{ runner.os }}-pip-ansible-core-3.12
451
451
# ${{ runner.os }}-pip-ansible-core-3.13
452
-
452
+
453
453
# # # Restore dependencies cache
454
454
# # - name: Restore dependencies cache
455
455
# # uses: actions/cache@v3
@@ -474,7 +474,6 @@ jobs:
474
474
# run: |
475
475
# pip install --cache-dir ~/.cache/pip -r .github/requirements-ci.txt --upgrade
476
476
477
-
478
477
# - name: Print pip list
479
478
# run: |
480
479
# echo "Installed Python packages for Python version ${{ matrix.python_version }}:"
@@ -514,7 +513,7 @@ jobs:
514
513
515
514
# Extract the "Stored in directory" path from logs
516
515
FULL_WHEEL_PATH=$(grep -m 1 "Stored in directory:" pip_install.log | awk '{print $NF}')
517
-
516
+
518
517
# Verify the path and print it
519
518
if [ -z "$FULL_WHEEL_PATH" ]; then
520
519
echo "Wheel path not found in logs."
@@ -540,7 +539,45 @@ jobs:
540
539
541
540
echo "Found wheel file: $WHEEL_FILE"
542
541
542
+ echo "WHEEL_FILE=$WHEEL_FILE" >> $GITHUB_ENV
543
+
544
+ - name : Upload wheel artifact
545
+ uses : actions/upload-artifact@v3
546
+ with :
547
+ name : pyavd-wheel
548
+ path : ${{ env.WHEEL_FILE }}
549
+
550
+ download-and-use :
551
+ runs-on : ubuntu-latest
552
+ needs : ansible_test_sanity
543
553
554
+ steps :
555
+ - uses : actions/checkout@v4
556
+ - name : Set up Python 3
557
+ uses : actions/setup-python@v5
558
+ id : pipcache
559
+ with :
560
+ python-version : |
561
+ 3.10
562
+ 3.11
563
+ 3.12
564
+ 3.13
565
+ cache : ' pip'
566
+ cache-latest : true
567
+ - name : Download wheel artifact
568
+ uses : actions/download-artifact@v3
569
+ with :
570
+ name : pyavd-wheel
571
+ path : ./artifacts
572
+
573
+ - name : Install the wheel file
574
+ run : |
575
+ # Verify the downloaded artifact
576
+ echo "Contents of artifacts directory:"
577
+ ls -al ./artifacts
578
+
579
+ # Install the wheel file
580
+ pip install ./artifacts/pyavd-5.2.0.dev2-py3-none-any.whl
544
581
# - name: Print runner path
545
582
# run: |
546
583
# WHEEL_CACHE_ROOT="$(pip cache dir)/wheels"
@@ -643,7 +680,7 @@ jobs:
643
680
644
681
# - name: Install Ansible Galaxy Collections
645
682
# run: ansible-galaxy collection install -r ansible_collections/arista/avd/collections.yml
646
-
683
+
647
684
# - name: 'Run ansible-test integration test cases'
648
685
# run: |
649
686
# cd ansible_collections/arista/avd/
0 commit comments