From 2c8631a75fa05b02363242876eb7bb758ab43763 Mon Sep 17 00:00:00 2001 From: Carl Buchmann Date: Thu, 18 Jul 2024 16:30:43 -0400 Subject: [PATCH] update pipeline for Python 3.9 support --- .github/workflows/pull-request-management.yml | 5 +++-- ansible_collections/arista/cvp/requirements-dev.txt | 4 ++-- development/requirements-dev-3.9.txt | 1 + 3 files changed, 6 insertions(+), 4 deletions(-) create mode 120000 development/requirements-dev-3.9.txt diff --git a/.github/workflows/pull-request-management.yml b/.github/workflows/pull-request-management.yml index a75eb19b2..4d493b900 100644 --- a/.github/workflows/pull-request-management.yml +++ b/.github/workflows/pull-request-management.yml @@ -130,7 +130,7 @@ jobs: strategy: fail-fast: true matrix: - python_version: ['3.10','3.11','3.12'] + python_version: ['3.9','3.10','3.11','3.12'] steps: - name: 'set environment variables' run: | @@ -142,8 +142,9 @@ jobs: with: python-version: ${{ matrix.python_version }} - name: Install requirements + # forcing a specific version of ansible-lint to install requirement-dev in Python 3.9. run: | - pip install -r ansible_collections/arista/cvp/requirements-dev.txt + pip install -r ansible_collections/arista/cvp/requirements-dev-3.9.txt pip install -r ansible_collections/arista/cvp/requirements.txt - name: 'Execute pytest validation' run: | diff --git a/ansible_collections/arista/cvp/requirements-dev.txt b/ansible_collections/arista/cvp/requirements-dev.txt index c22c27593..7ebaa23c9 100644 --- a/ansible_collections/arista/cvp/requirements-dev.txt +++ b/ansible_collections/arista/cvp/requirements-dev.txt @@ -1,6 +1,6 @@ -ansible-core>=2.15.0,<2.17.0 +# Temprequirements for python 3.9 (removed ansible-lint) +ansible-core>=2.15.0,<2.18.0 ansible-builder -ansible-lint>=24.7.0 galaxy-importer>=0.3.1 pycodestyle flake8 diff --git a/development/requirements-dev-3.9.txt b/development/requirements-dev-3.9.txt new file mode 120000 index 000000000..9ce5a1f2c --- /dev/null +++ b/development/requirements-dev-3.9.txt @@ -0,0 +1 @@ +../ansible_collections/arista/cvp/requirements-dev.txt \ No newline at end of file