Skip to content

Commit 3dbeea2

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

File tree

2 files changed

+41
-4
lines changed

2 files changed

+41
-4
lines changed

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

+40-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,44 @@ 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: build-and-upload
553+
554+
steps:
555+
- name: Set up Python 3
556+
uses: actions/setup-python@v5
557+
id: pipcache
558+
with:
559+
python-version: |
560+
3.10
561+
3.11
562+
3.12
563+
3.13
564+
cache: 'pip'
565+
cache-latest: true
566+
- name: Download wheel artifact
567+
uses: actions/download-artifact@v3
568+
with:
569+
name: pyavd-wheel
570+
path: ./artifacts
571+
572+
- name: Install the wheel file
573+
run: |
574+
# Verify the downloaded artifact
575+
echo "Contents of artifacts directory:"
576+
ls -al ./artifacts
543577
578+
# Install the wheel file
579+
pip install ./artifacts/pyavd-5.2.0.dev2-py3-none-any.whl
544580
# - name: Print runner path
545581
# run: |
546582
# WHEEL_CACHE_ROOT="$(pip cache dir)/wheels"
@@ -643,7 +679,7 @@ jobs:
643679

644680
# - name: Install Ansible Galaxy Collections
645681
# run: ansible-galaxy collection install -r ansible_collections/arista/avd/collections.yml
646-
682+
647683
# - name: 'Run ansible-test integration test cases'
648684
# run: |
649685
# 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)