Skip to content

Commit af9b453

Browse files
committed
upload/download artifact
1 parent 3610aec commit af9b453

File tree

2 files changed

+42
-4
lines changed

2 files changed

+42
-4
lines changed

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

+41-4
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ jobs:
449449
# restore-keys: |
450450
# ${{ runner.os }}-pip-ansible-core-3.12
451451
# ${{ runner.os }}-pip-ansible-core-3.13
452-
452+
453453
# # # Restore dependencies cache
454454
# # - name: Restore dependencies cache
455455
# # uses: actions/cache@v3
@@ -474,7 +474,6 @@ jobs:
474474
# run: |
475475
# pip install --cache-dir ~/.cache/pip -r .github/requirements-ci.txt --upgrade
476476

477-
478477
# - name: Print pip list
479478
# run: |
480479
# echo "Installed Python packages for Python version ${{ matrix.python_version }}:"
@@ -514,7 +513,7 @@ jobs:
514513
515514
# Extract the "Stored in directory" path from logs
516515
FULL_WHEEL_PATH=$(grep -m 1 "Stored in directory:" pip_install.log | awk '{print $NF}')
517-
516+
518517
# Verify the path and print it
519518
if [ -z "$FULL_WHEEL_PATH" ]; then
520519
echo "Wheel path not found in logs."
@@ -540,7 +539,45 @@ jobs:
540539
541540
echo "Found wheel file: $WHEEL_FILE"
542541
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
543553

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
544581
# - name: Print runner path
545582
# run: |
546583
# WHEEL_CACHE_ROOT="$(pip cache dir)/wheels"
@@ -643,7 +680,7 @@ jobs:
643680

644681
# - name: Install Ansible Galaxy Collections
645682
# run: ansible-galaxy collection install -r ansible_collections/arista/avd/collections.yml
646-
683+
647684
# - name: 'Run ansible-test integration test cases'
648685
# run: |
649686
# cd ansible_collections/arista/avd/

python-avd/pyavd/_eos_designs/eos_designs_facts/mlag.py

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
if TYPE_CHECKING:
1010
from . import EosDesignsFacts
1111

12+
1213
# comment for testing CI
1314
class MlagMixin:
1415
"""

0 commit comments

Comments
 (0)