Skip to content

Commit

Permalink
Merge pull request #13 from Carreau/misc-updates
Browse files Browse the repository at this point in the history
Misc updates
  • Loading branch information
Carreau authored May 30, 2024
2 parents 9296cef + 6da3e9d commit e2b4914
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 6 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,10 @@ jobs:
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
- run: pip install -ve .[tests]
- run: pytest tests
- run:
pip install -ve .[tests]
pip install mypy
- run:
pytest tests
- run:
mypy
17 changes: 13 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,21 @@ dynamic = ["version", "description"]
readme = "README.md"

[project.optional-dependencies]
tests = ["pytest>=7.0", "pytest-xdist", "requests"]
tests = ["pytest>=7.0", "pytest-xdist", "requests", "mypy", "types-requests"]

[tool.pytest.ini_options]
minversion = "7.0"
# run @parametrize tests in parallel as some use requests.
addopts = "-n auto"
# -n auto:
# run @parametrize tests in parallel as some use requests.
# requires ptest x-dist
addopts = ["-n","auto", "--strict-config", "--strict-markers", "-ra"]
filterwarnings = ["error"]
log_cli_level = "INFO"
testpaths = ["tests"]
xfail_strict = true

[tool.mypy]
files = ["intersphinx_registry", "tests"]

[project.urls]
Home = "https://github.com/Carreau/intersphinx_registry"
Home = "https://github.com/Quansight-labs/intersphinx_registry"

0 comments on commit e2b4914

Please sign in to comment.