diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 7fc4844..3f3e2d5 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -14,7 +14,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: [3.8, 3.10] + python-version: ["3.8", "3.10", "3.12"] steps: - uses: actions/checkout@v2 diff --git a/.gitignore b/.gitignore index 64feae4..3954662 100644 --- a/.gitignore +++ b/.gitignore @@ -32,7 +32,7 @@ pip-delete-this-directory.txt # Unit test / coverage reports .tox/ xunit/ -.coverage +.coverage* .cache nosetests.xml coverage.xml diff --git a/README.md b/README.md index b16e89a..4af77ce 100644 --- a/README.md +++ b/README.md @@ -420,7 +420,7 @@ validator. - keywords: - `allow_empty`: Allow the subset to be empty (and is, therefore, also optional). This overrides the `required` flag. - + Examples: - `subset(int(), str())`: Validators against an integer, a string, or a list of either. - `subset(int(), str(), allow_empty=True)`: Same as above, but allows the empty set and makes the subset optional. diff --git a/requirements.txt b/requirements.txt index 534bbce..ed71f87 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1 +1 @@ -tox==3.15.2 +tox==4.13.0 diff --git a/tox.ini b/tox.ini index f7917e3..4eb92da 100644 --- a/tox.ini +++ b/tox.ini @@ -5,10 +5,11 @@ envlist = py38, py310 python = 3.8: py38 3.10: py310 + 3.12: py312 [testenv] commands = py.test --cov yamale --cov-report term-missing yamale deps = ruamel.yaml<1 - pytest<6 - pytest-cov<3 + pytest<7 + pytest-cov<4 diff --git a/yamale/VERSION b/yamale/VERSION index c5106e6..0062ac9 100644 --- a/yamale/VERSION +++ b/yamale/VERSION @@ -1 +1 @@ -4.0.4 +5.0.0