Skip to content

Commit b04b7c4

Browse files
committed
Add ansible_test_integration cache
1 parent ab9c0d1 commit b04b7c4

File tree

1 file changed

+70
-51
lines changed

1 file changed

+70
-51
lines changed

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

+70-51
Original file line numberDiff line numberDiff line change
@@ -430,40 +430,41 @@ jobs:
430430
cd ansible_collections/arista/avd/
431431
ansible-test sanity --color yes -v
432432
433-
ansible_test_units:
434-
name: Run ansible-test units test cases
435-
runs-on: ubuntu-latest
436-
needs: [python_requirements, file-changes]
437-
steps:
438-
- uses: actions/checkout@v4
439-
- name: Set up Python 3
440-
uses: actions/setup-python@v5
441-
with:
442-
python-version: |
443-
3.10
444-
- name: Restore cache for requirements-ci.txt
445-
uses: actions/cache@v3
446-
with:
447-
path: ~/.cache/pip
448-
key: ${{ runner.os }}-pip-requirements-ci-${{ hashFiles('.github/requirements-ci.txt') }}-3.10
449-
restore-keys: |
450-
${{ runner.os }}-pip-requirements-ci-${{ hashFiles('.github/requirements-ci.txt') }}-3.10
433+
# ansible_test_units:
434+
# name: Run ansible-test units test cases
435+
# runs-on: ubuntu-latest
436+
# needs: [python_requirements, file-changes]
437+
# steps:
438+
# - uses: actions/checkout@v4
439+
# - name: Set up Python 3
440+
# uses: actions/setup-python@v5
441+
# with:
442+
# python-version: |
443+
# 3.10
444+
# - name: Restore cache for requirements-ci.txt
445+
# uses: actions/cache@v3
446+
# with:
447+
# path: ~/.cache/pip
448+
# key: ${{ runner.os }}-pip-requirements-ci-${{ hashFiles('.github/requirements-ci.txt') }}-3.10
449+
# restore-keys: |
450+
# ${{ runner.os }}-pip-requirements-ci-${{ hashFiles('.github/requirements-ci.txt') }}-3.10
451451

452-
- name: Restore cache for ansible-core<2.19.0
453-
uses: actions/cache@v3
454-
with:
455-
path: ~/.cache/ansible
456-
key: ${{ runner.os }}-pip-ansible-core-3.10
457-
restore-keys: |
458-
${{ runner.os }}-pip-ansible-core-3.10
452+
# - name: Restore cache for ansible-core<2.19.0
453+
# uses: actions/cache@v3
454+
# with:
455+
# path: ~/.cache/ansible
456+
# key: ${{ runner.os }}-pip-ansible-core-3.10
457+
# restore-keys: |
458+
# ${{ runner.os }}-pip-ansible-core-3.10
459459

460-
- name: 'Install Python requirements'
461-
run: |
462-
pip install mock pytest pytest-mock pytest-xdist pyyaml --upgrade
463-
- name: 'Run ansible-test units test cases'
464-
run: |
465-
cd ansible_collections/arista/avd/
466-
ansible-test units -vv
460+
# - name: 'Install Python requirements'
461+
# run: |
462+
# pip install mock pytest pytest-mock pytest-xdist pyyaml --upgrade
463+
464+
# - name: 'Run ansible-test units test cases'
465+
# run: |
466+
# cd ansible_collections/arista/avd/
467+
# ansible-test units -vv
467468

468469
# install_dependencies:
469470
# name: Install and cache dependencies
@@ -648,25 +649,43 @@ jobs:
648649
# ansible-test units -vv
649650

650651

651-
# ansible_test_integration:
652-
# name: Run ansible-test integration test cases
653-
# runs-on: ubuntu-latest
654-
# needs: [ file-changes ]
655-
# steps:
656-
# - uses: actions/checkout@v4
657-
# - name: Set up Python 3
658-
# uses: actions/setup-python@v5
659-
# with:
660-
# python-version: |
661-
# 3.12
662-
# 3.13
663-
# - name: 'Install Python requirements'
664-
# run: |
665-
# pip install "ansible-core<2.19.0" -r .github/requirements-ci.txt --upgrade
666-
# - name: 'Run ansible-test integration test cases'
667-
# run: |
668-
# cd ansible_collections/arista/avd/
669-
# ansible-test integration -vv
652+
ansible_test_integration:
653+
name: Run ansible-test integration test cases
654+
runs-on: ubuntu-latest
655+
needs: [ python_requirements, file-changes ]
656+
steps:
657+
- uses: actions/checkout@v4
658+
- name: Set up Python 3
659+
uses: actions/setup-python@v5
660+
with:
661+
python-version: |
662+
3.12
663+
3.13
664+
- name: Restore cache for requirements-ci.txt
665+
uses: actions/cache@v3
666+
with:
667+
path: ~/.cache/pip
668+
key: ${{ runner.os }}-pip-requirements-ci-${{ hashFiles('.github/requirements-ci.txt') }}-${{ matrix.python_version }}
669+
restore-keys: |
670+
${{ runner.os }}-pip-requirements-ci-${{ hashFiles('.github/requirements-ci.txt') }}-3.12
671+
${{ runner.os }}-pip-requirements-ci-${{ hashFiles('.github/requirements-ci.txt') }}-3.13
672+
673+
- name: Restore cache for ansible-core<2.19.0
674+
uses: actions/cache@v3
675+
with:
676+
path: ~/.cache/ansible
677+
key: ${{ runner.os }}-pip-ansible-core-${{ matrix.python_version }}
678+
restore-keys: |
679+
${{ runner.os }}-pip-ansible-core-3.12
680+
${{ runner.os }}-pip-ansible-core-3.13
681+
682+
# - name: 'Install Python requirements'
683+
# run: |
684+
# pip install "ansible-core<2.19.0" -r .github/requirements-ci.txt --upgrade
685+
- name: 'Run ansible-test integration test cases'
686+
run: |
687+
cd ansible_collections/arista/avd/
688+
ansible-test integration -vv
670689
671690
# ansible_lint:
672691
# name: Run ansible-lint test case

0 commit comments

Comments
 (0)