Skip to content

Commit

Permalink
Update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
daizutabi committed Jan 19, 2025
1 parent cbb2c07 commit a67977e
Show file tree
Hide file tree
Showing 4 changed files with 10 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 @@ -36,7 +36,7 @@ jobs:
- name: Install the project
run: uv sync
- name: Run test
run: uv run pytest tests\axes -x --junitxml=junit.xml
run: uv run pytest tests\distframe -x --junitxml=junit.xml
- name: Upload Codecov Results
if: success()
uses: codecov/codecov-action@v4
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -99,4 +99,4 @@ ignore = [
]

[tool.ruff.lint.per-file-ignores]
"tests/*" = ["ANN", "ARG", "D", "PLR", "RUF", "S"]
"tests/*" = ["ANN", "ARG", "D", "FBT", "PLR", "RUF", "S"]
3 changes: 3 additions & 0 deletions tests/distframe/test_columns.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
from xlviews.distframe import DistFrame
from xlviews.formula import NONCONST_VALUE
from xlviews.sheetframe import SheetFrame
from xlviews.utils import is_excel_installed

pytestmark = pytest.mark.skipif(not is_excel_installed(), reason="Excel not installed")


@pytest.mark.parametrize(
Expand Down
5 changes: 5 additions & 0 deletions tests/distframe/test_frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@

from xlviews.distframe import DistFrame
from xlviews.sheetframe import SheetFrame
from xlviews.utils import is_excel_installed

pytestmark = pytest.mark.skipif(not is_excel_installed(), reason="Excel not installed")


def test_init_data(sf: SheetFrame):
Expand All @@ -16,13 +19,15 @@ def test_init_data(sf: SheetFrame):
assert len(df) == 14


@pytest.mark.skipif(False, reason="Excel not installed")
def test_dist_func_str():
from xlviews.distframe import get_dist_func

df = get_dist_func("norm", ["a", "b"])
assert df == {"a": "norm", "b": "norm"}


@pytest.mark.skipif(False, reason="Excel not installed")
def test_dist_func_dict():
from xlviews.distframe import get_dist_func

Expand Down

0 comments on commit a67977e

Please sign in to comment.