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: 2 additions & 2 deletions .codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ coverage:
status:
project:
default:
target: 95%
target: 90%
patch:
default:
target: 95%
target: 90%

comment: false
27 changes: 27 additions & 0 deletions .github/workflows/tests-dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Tests dev

on:
schedule:
# check once a week on mondays
- cron: '0 10 * * 1'

jobs:
tests-dev:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.13"]

steps:
- uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Install tests dependencies
run: python -m pip install tox

- name: Run tests against scikit-learn dev version
run: tox -e tests-dev
4 changes: 2 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

- name: install tests dependencies
- name: Install tests dependencies
run: python -m pip install tox coverage[toml]

- name: run Python tests
- name: Run Python tests
run: |
tox -e tests
coverage xml
Expand Down
5 changes: 5 additions & 0 deletions tests/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
ase
parameterized
pytest
pytest-cov
tqdm
24 changes: 14 additions & 10 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -29,22 +29,27 @@ commands =
check-manifest {toxinidir}

[testenv:tests]
description = Runs the tests
description = Runs tests
usedevelop = true
changedir = tests
deps =
parameterized
pytest
pytest-cov
tqdm

deps = -r tests/requirements.txt
commands =
# Run unit tests
pytest {posargs}

# Run documentation tests
pytest --doctest-modules --pyargs skmatter {posargs}

[testenv:tests-dev]
description = Runs tests against scikit-learn dev version
deps = -r tests/requirements.txt
commands_pre =
python -m pip install \
--force-reinstall \
--no-deps \
git+https://github.com/scikit-learn/scikit-learn.git
commands =
pytest {posargs}

[testenv:lint]
description = Checks the code and doc for programmatic and stylistic errors
skip_install = true
Expand Down Expand Up @@ -74,8 +79,7 @@ commands =
[testenv:docs]
description = Builds the documentation
usedevelop = true
deps =
-r docs/requirements.txt
deps = -r docs/requirements.txt
# The documentation runs "examples" to produce outputs via sphinx-gallery.
extras = examples
commands =
Expand Down