Skip to content

Commit

Permalink
Fix pytest
Browse files Browse the repository at this point in the history
  • Loading branch information
lzqlzzq committed Dec 22, 2023
1 parent ceef96c commit b01a548
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,10 @@ jobs:
run: |
# Install local package with tests dependencies extras
python -m pip install --upgrade pip
pip install pytest
pip install -e ".[test]"
- name: Test with pytest
run: pytest --cov=./ --cov-report=xml -n auto --durations=0 -v tests
run: pytest --cov=./ --cov-report=xml --durations=0 -v tests

- name: Codecov
uses: codecov/codecov-action@v3.1.0
13 changes: 13 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,19 @@ version.input = "symusic/__init__.py"
packages = ["symusic"]
cmake-args = []

[project.optional-dependencies]
test = ["pytest-cov"]

[tool.pytest.ini_options]
minversion = "6.0"
addopts = ["-ra", "--showlocals", "--strict-markers", "--strict-config"]
xfail_strict = true
log_cli_level = "INFO"
filterwarnings = [
"error",
]
testpaths = ["tests"]

[tool.ruff]
target-version = "py38"
exclude = ["3rdparty"]
Expand Down

0 comments on commit b01a548

Please sign in to comment.