diff --git a/.github/workflows/tox.yml b/.github/workflows/tox.yml index e46fea8..0584248 100644 --- a/.github/workflows/tox.yml +++ b/.github/workflows/tox.yml @@ -67,7 +67,11 @@ jobs: - name: Set up Python uses: actions/setup-python@v5 with: - python-version: ${{ matrix.entry.python }} + # tox-ansible requires python 3.10 but it can be used to test with + # older versions of python. + python-version: | + ${{ matrix.entry.python }} + 3.10 - name: Install tox-ansible, includes tox run: python3 -m pip install . diff --git a/pyproject.toml b/pyproject.toml index 55c312f..e564165 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -72,7 +72,7 @@ allow-init-docstring = true arg-type-hints-in-docstring = false baseline = ".config/pydoclint-baseline.txt" check-return-types = false -exclude = '\.eggs|\.git|\.tox|build|out|venv' +exclude = '\.cache|\.eggs|\.git|\.mypy_cache|\.tox|build|dist|out|venv' should-document-private-class-attributes = true show-filenames-in-every-violation-message = true skip-checking-short-docstrings = false diff --git a/src/tox_ansible/plugin.py b/src/tox_ansible/plugin.py index 515c1a4..89d78cf 100644 --- a/src/tox_ansible/plugin.py +++ b/src/tox_ansible/plugin.py @@ -49,10 +49,12 @@ {integration, sanity, unit}-py3.13-{2.18, milestone, devel} """ TOX_WORK_DIR = Path() +# Without the minimal pytest-ansible condition, installation may fail in some +# cases (pip, uv). OUR_DEPS = [ - "pytest", - "pytest-xdist", - "pytest-ansible", + "pytest>=7.4.3", # Oct 2023 + "pytest-xdist>=3.4.0", # Nov 2023 + "pytest-ansible>=v4.1.1", # latest version still supporting py39 (Oct 2023) ] T = TypeVar("T", bound=ConfigSet)