Skip to content

Commit

Permalink
ci: use extras for test deps
Browse files Browse the repository at this point in the history
  • Loading branch information
nijel committed Oct 9, 2023
1 parent dab779a commit 55dac0c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 55dac0c

Please sign in to comment.