Skip to content

Commit

Permalink
Fix workflow and tox
Browse files Browse the repository at this point in the history
  • Loading branch information
richardkoehler committed Feb 14, 2024
1 parent e652c46 commit 588af34
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ jobs:
# }
# - { name: 3.12 Mac, python: "3.12", os: macos-latest, tox: py312 }
- {
name: Pre-commit,
name: Lint with pre-commit,
python: "3.12",
os: ubuntu-latest,
tox: pre-commit,
tox: lint,
}
steps:
- uses: actions/checkout@v4
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ dependencies = [
"numpy",
"scikit-image",
"statsmodels",
"pandas-stubs",
]

[project.optional-dependencies]
Expand Down
7 changes: 4 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
[tox]
envlist =
py3{12,11,10}
pre-commit
lint
skip_missing_interpreters = true
isolated_build = true

[testenv]
commands = pytest -v --tb=short --basetemp={envtmpdir} {posargs:tests}

[testenv:{pre-commit}]
[testenv:{lint}]
commands =
pre-commit: pre-commit run --all-files
install_pre-commit: pip install pre-commit
run_pre-commit: pre-commit run --show-diff-on-failure --all-files

0 comments on commit 588af34

Please sign in to comment.