From 077d6674caa0adfa113727156ba8105b85755e99 Mon Sep 17 00:00:00 2001 From: sharmb5 Date: Tue, 18 Jun 2024 04:24:57 -0400 Subject: [PATCH] Updating git actions and requirement.txt for Unit test cases --- .github/workflows/ansible-test.yml | 10 ++++++++-- tests/unit/requirements.txt | 2 +- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ansible-test.yml b/.github/workflows/ansible-test.yml index 76f9538..eaeb5b9 100644 --- a/.github/workflows/ansible-test.yml +++ b/.github/workflows/ansible-test.yml @@ -17,7 +17,7 @@ jobs: ansible-version: [stable-2.15, stable-2.16, stable-2.17, devel] steps: - name: Check out code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set up Python 3.11 uses: actions/setup-python@v4 @@ -61,6 +61,8 @@ jobs: python: '3.9' - ansible: devel python: '3.9' + - ansible: devel + python: '3.10' steps: - name: Perform unit testing with ansible-test @@ -94,6 +96,8 @@ jobs: python: '3.9' - ansible: devel python: '3.9' + - ansible: devel + python: '3.10' runs-on: ubuntu-latest steps: - name: Perform sanity testing @@ -122,11 +126,13 @@ jobs: ansible-version: stable-2.17 - python-version: "3.9" ansible-version: devel + - python-version: "3.10" + ansible-version: devel steps: # Important: This sets up your GITHUB_WORKSPACE environment variable - name: Checkout the source code - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 # needed for progressive mode to work diff --git a/tests/unit/requirements.txt b/tests/unit/requirements.txt index 3541acd..8dab883 100644 --- a/tests/unit/requirements.txt +++ b/tests/unit/requirements.txt @@ -3,5 +3,5 @@ pytest-xdist pytest-mock pytest-cov pytest-forked -coverage==4.5.4 +coverage mock