Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ jobs:
github-token: ${{ secrets.GITHUB_TOKEN }}
comment-always: true
summary-always: true
- name: Clear previous benchmark report
if: ${{ github.event_name == 'push' }}
run: |
gh cache delete ${{ runner.os }}-benchmark
- name: Upload coverage to Codecov
if: ${{ github.event_name == 'push' }}
uses: codecov/codecov-action@v3
Expand Down
14 changes: 4 additions & 10 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,8 @@ mypy-type = "mypy bigtree"
[tool.hatch.envs.docs]
dependencies = [
"autodocsumm==0.2.11",
"myst-parser~=1.0.0",
"IPython",
"pandas",
"pydot",
"Pillow",
"myst-parser~=1.0.0",
"sphinxcontrib-mermaid==0.9.2",
"sphinxemoji==0.2.0",
"sphinx-material==0.0.36"
Expand All @@ -93,18 +90,15 @@ clean-html = "sphinx-build -M html docs_sphinx/source docs_sphinx/build & sphinx

[tool.hatch.envs.mkdocs]
dependencies = [
"black",
"docstr-coverage",
"IPython",
"mkdocs==1.5.3",
"mkdocs-material[imaging]==9.5.5",
"mdx_truly_sane_lists",
"mkdocstrings[python]",
"docstr-coverage",
"mkdocs-glightbox",
"termynal",
"black",
"IPython",
"pandas",
"pydot",
"Pillow",
]

[tool.hatch.envs.mkdocs.scripts]
Expand Down
12 changes: 12 additions & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -537,6 +537,18 @@ def phylogenetic_tree():
return root


def pytest_benchmark_scale_unit(config, unit, benchmarks, best, worst, sort):
prefix = ""
if unit == "seconds":
scale = 1.0
elif unit == "operations":
scale = 0.001
else:
raise RuntimeError("Unexpected measurement unit %r" % unit)

return prefix, scale


def assert_print_statement(func, expected, *args, **kwargs):
captured_output = io.StringIO()
sys.stdout = captured_output
Expand Down