diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 773cf52..cb8d018 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,13 +1,21 @@ -name: test -on: [push] +name: Test +on: [push, pull_request] jobs: test: runs-on: ubuntu-latest + strategy: + matrix: + python-version: ['3.10', '3.11', '3.12', '3.13'] + node: [16, 18, 20, 22] steps: - - uses: actions/checkout@v1 - - uses: actions/setup-python@v4 + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 with: - python-version: '3.11' - - uses: actions/setup-node@v1 + python-version: ${{ matrix.python-version }} + cache: pip + - uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node }} + cache: npm - run: make install - run: make test diff --git a/Makefile b/Makefile index 04b826e..e5b1c5b 100644 --- a/Makefile +++ b/Makefile @@ -13,7 +13,6 @@ release: release-py release-js install-py: poetry --version || python3 -m pip install poetry - poetry env use python3.11 poetry install install-js: diff --git a/poetry.lock b/poetry.lock index 2e438bb..0269c3f 100644 --- a/poetry.lock +++ b/poetry.lock @@ -1,4 +1,4 @@ -# This file is automatically @generated by Poetry 1.6.1 and should not be changed by hand. +# This file is automatically @generated by Poetry 1.5.1 and should not be changed by hand. [[package]] name = "bleach" @@ -256,6 +256,20 @@ files = [ {file = "docutils-0.20.1.tar.gz", hash = "sha256:f08a4e276c3a1583a86dce3e34aba3fe04d02bba2dd51ed16106244e8a923e3b"}, ] +[[package]] +name = "exceptiongroup" +version = "1.2.1" +description = "Backport of PEP 654 (exception groups)" +optional = false +python-versions = ">=3.7" +files = [ + {file = "exceptiongroup-1.2.1-py3-none-any.whl", hash = "sha256:5258b9ed329c5bbdd31a309f53cbfb0b155341807f6ff7606a1e801a891b29ad"}, + {file = "exceptiongroup-1.2.1.tar.gz", hash = "sha256:a4785e48b045528f5bfe627b6ad554ff32def154f42372786903b7abcfe1aa16"}, +] + +[package.extras] +test = ["pytest (>=6)"] + [[package]] name = "idna" version = "3.4" @@ -477,9 +491,11 @@ files = [ [package.dependencies] colorama = {version = "*", markers = "sys_platform == \"win32\""} +exceptiongroup = {version = ">=1.0.0rc8", markers = "python_version < \"3.11\""} iniconfig = "*" packaging = "*" pluggy = ">=0.12,<2.0" +tomli = {version = ">=1.0.0", markers = "python_version < \"3.11\""} [package.extras] testing = ["argcomplete", "attrs (>=19.2.0)", "hypothesis (>=3.56)", "mock", "nose", "pygments (>=2.7.2)", "requests", "setuptools", "xmlschema"] @@ -607,6 +623,17 @@ files = [ {file = "six-1.16.0.tar.gz", hash = "sha256:1e61c37477a1626458e36f7b1d82aa5c9b094fa4802892072e49de9c60c4c926"}, ] +[[package]] +name = "tomli" +version = "2.0.1" +description = "A lil' TOML parser" +optional = false +python-versions = ">=3.7" +files = [ + {file = "tomli-2.0.1-py3-none-any.whl", hash = "sha256:939de3e7a6161af0c887ef91b7d41a53e7c5a1ca976325f429cb46ea9bc30ecc"}, + {file = "tomli-2.0.1.tar.gz", hash = "sha256:de526c12914f0c550d15924c62d72abc48d6fe7364aa87328337a31007fe8a4f"}, +] + [[package]] name = "twine" version = "4.0.2" @@ -674,5 +701,5 @@ testing = ["big-O", "jaraco.functools", "jaraco.itertools", "more-itertools", "p [metadata] lock-version = "2.0" -python-versions = "^3.11" -content-hash = "ffe179f1973089ff6b98e9c808e4cedbb97964b1c94f01e7b6a7cfeabd67f998" +python-versions = "^3.10" +content-hash = "0e11c4677c6fa0b3c6fe803cd444322a3f50778a626d313c1fd433b982f445f5" diff --git a/pyproject.toml b/pyproject.toml index 71f3086..5f47b95 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -14,7 +14,7 @@ include = ["LICENSE", "README.md"] crosshash-py = 'crosshash:main' [tool.poetry.dependencies] -python = "^3.11" +python = "^3.10" [tool.poetry.group.dev.dependencies]