From e557a78a5335f5924f62deada04e91ce3c24e968 Mon Sep 17 00:00:00 2001 From: Andrey Gubarev Date: Fri, 10 May 2024 16:28:43 +0400 Subject: [PATCH 1/6] updated github workflow to install ansible version 5.0.0 before running tests --- .github/workflows/ansible-test.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ansible-test.yml b/.github/workflows/ansible-test.yml index a7a7dd1..a4383e8 100644 --- a/.github/workflows/ansible-test.yml +++ b/.github/workflows/ansible-test.yml @@ -31,5 +31,6 @@ jobs: - name: Run test run: | direnv allow . + direnv exec . pipenv install ansible~=5.0.0 direnv exec . ansible-galaxy collection install -r requirements.yml direnv exec . make test-platform-amd64 From f675de5d5be2114dea18948ca19b2dc76512054d Mon Sep 17 00:00:00 2001 From: Andrey Gubarev Date: Fri, 10 May 2024 16:30:20 +0400 Subject: [PATCH 2/6] added pipenv cache to github actions workflow in ansible-test.yml --- .github/workflows/ansible-test.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ansible-test.yml b/.github/workflows/ansible-test.yml index a4383e8..35aea6c 100644 --- a/.github/workflows/ansible-test.yml +++ b/.github/workflows/ansible-test.yml @@ -19,6 +19,7 @@ jobs: uses: actions/setup-python@v5 with: python-version: '3.x' + cache: 'pipenv' - name: Install pipenv run: pip install pipenv From 29a2c3ebde3b19c604bce5ba1664bdf9408727c6 Mon Sep 17 00:00:00 2001 From: Andrey Gubarev Date: Fri, 10 May 2024 16:32:20 +0400 Subject: [PATCH 3/6] added matrix strategy to ansible-tests for testing across multiple ansible versions --- .github/workflows/ansible-test.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ansible-test.yml b/.github/workflows/ansible-test.yml index 35aea6c..988f786 100644 --- a/.github/workflows/ansible-test.yml +++ b/.github/workflows/ansible-test.yml @@ -8,7 +8,16 @@ permissions: jobs: test: runs-on: ubuntu-latest - + strategy: + matrix: + version: + - 3.0 + - 4.0 + - 5.0 + - 6.0 + - 7.0 + - 8.0 + - 9.0 steps: - uses: actions/checkout@v4 @@ -32,6 +41,6 @@ jobs: - name: Run test run: | direnv allow . - direnv exec . pipenv install ansible~=5.0.0 + direnv exec . pipenv install ansible~=${{ matrix.version }} direnv exec . ansible-galaxy collection install -r requirements.yml direnv exec . make test-platform-amd64 From ae6f15ef2555094308206489757d665e3634a766 Mon Sep 17 00:00:00 2001 From: Andrey Gubarev Date: Fri, 10 May 2024 16:33:36 +0400 Subject: [PATCH 4/6] updated ansible-test workflow matrix versions to strings --- .github/workflows/ansible-test.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ansible-test.yml b/.github/workflows/ansible-test.yml index 988f786..db439bb 100644 --- a/.github/workflows/ansible-test.yml +++ b/.github/workflows/ansible-test.yml @@ -11,13 +11,13 @@ jobs: strategy: matrix: version: - - 3.0 - - 4.0 - - 5.0 - - 6.0 - - 7.0 - - 8.0 - - 9.0 + - "3.0" + - "4.0" + - "5.0" + - "6.0" + - "7.0" + - "8.0" + - "9.0" steps: - uses: actions/checkout@v4 From 2082619ceea58ba8f2265a451a989ebebeb6a23e Mon Sep 17 00:00:00 2001 From: Andrey Gubarev Date: Fri, 10 May 2024 16:39:18 +0400 Subject: [PATCH 5/6] updated ansible-test workflow to test only with versions 8.0 and 9.0 --- .github/workflows/ansible-test.yml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/.github/workflows/ansible-test.yml b/.github/workflows/ansible-test.yml index db439bb..8b84bfc 100644 --- a/.github/workflows/ansible-test.yml +++ b/.github/workflows/ansible-test.yml @@ -11,11 +11,6 @@ jobs: strategy: matrix: version: - - "3.0" - - "4.0" - - "5.0" - - "6.0" - - "7.0" - "8.0" - "9.0" steps: From 8d1139ce58a21afce6f18dd115805f7e522307ac Mon Sep 17 00:00:00 2001 From: Andrey Gubarev Date: Fri, 10 May 2024 16:39:31 +0400 Subject: [PATCH 6/6] updated pipfile dependencies to use compatible release version specifiers --- Pipfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Pipfile b/Pipfile index 14ce5b6..712d5eb 100644 --- a/Pipfile +++ b/Pipfile @@ -5,11 +5,11 @@ name = "pypi" [packages] build = "*" -molecule = ">=5.0.0" +molecule = "~=5.0" [dev-packages] -ansible-lint = ">=24.0.0,<25.0.0" -pycodestyle = ">=2.00.0,<3.00.0" +ansible-lint = "~=24.0" +pycodestyle = "~=2.0" [requires] python_version = "3.12"