diff --git a/.github/workflows/setup.yml b/.github/workflows/setup.yml index 338fd6a..fc255c2 100644 --- a/.github/workflows/setup.yml +++ b/.github/workflows/setup.yml @@ -45,7 +45,7 @@ jobs: CIBW_ARCHS: ${{ matrix.config.arch }} CIBW_BUILD: cp*-${{ matrix.config.platform }} CIBW_SKIP: cp36* cp37* - CIBW_BEFORE_TEST: pip install pytest + CIBW_TEST_EXTRAS: test CIBW_TEST_COMMAND: pytest {project}/test_siphashc.py {project}/README.rst - name: Publish package distributions to PyPI diff --git a/pyproject.toml b/pyproject.toml index 4061d3e..4c84615 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -25,6 +25,9 @@ name = "Michal Čihař" [project.license] text = "ISC" +[project.optional-dependencies] +test = ["pytest"] + [project.readme] content-type = "text/x-rst" file = "README.rst"