diff --git a/.github/workflows/ansible-test.yml b/.github/workflows/ansible-test.yml index a7a7dd1..8b84bfc 100644 --- a/.github/workflows/ansible-test.yml +++ b/.github/workflows/ansible-test.yml @@ -8,7 +8,11 @@ permissions: jobs: test: runs-on: ubuntu-latest - + strategy: + matrix: + version: + - "8.0" + - "9.0" steps: - uses: actions/checkout@v4 @@ -19,6 +23,7 @@ jobs: uses: actions/setup-python@v5 with: python-version: '3.x' + cache: 'pipenv' - name: Install pipenv run: pip install pipenv @@ -31,5 +36,6 @@ jobs: - name: Run test run: | direnv allow . + direnv exec . pipenv install ansible~=${{ matrix.version }} direnv exec . ansible-galaxy collection install -r requirements.yml direnv exec . make test-platform-amd64 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"