Skip to content

Commit

Permalink
Update formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
DonFreed committed Nov 26, 2024
1 parent e6ab767 commit 7511aac
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
run: poetry run mypy .
- name: Run flake8
run: poetry run flake8 . --extend-ignore E231,E221, --exclude .github/scripts/license_message.py,sentieon_cli/scripts/gvcf_combine.py,sentieon_cli/scripts/vcf_mod.py # false+ from python 3.12
- name: Run the automated tests (for example)
- name: Run the automated tests
run: poetry run pytest -v
- name: Run doct tests
run: poetry run pytest --doctest-modules
12 changes: 11 additions & 1 deletion tests/test_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

import sentieon_cli.util # NOQA


def test_split_numa_nodes():
"""Test the NUMA split func"""
res = sentieon_cli.util.split_numa_nodes(["0-97"])
Expand All @@ -17,4 +18,13 @@ def test_split_numa_nodes():
res = sentieon_cli.util.split_numa_nodes(["0-15,32-47", "16-31,48-63"])
assert res == ["0-15", "32-47", "16-31", "48-63"]
res = sentieon_cli.util.split_numa_nodes(res)
assert res == ["0-7", "8-15", "32-39", "40-47", "16-23", "24-31", "48-55", "56-63"]
assert res == [
"0-7",
"8-15",
"32-39",
"40-47",
"16-23",
"24-31",
"48-55",
"56-63",
]

0 comments on commit 7511aac

Please sign in to comment.