-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Refactor (#74) * Azure Pipelines replaced by GitHub Actions * GitHub Actions refactored * Experiment tests deactivated * Black applied to all Python files * PR fixes * Fix default Latex "rank" macro for score tables (#75) * Small fixes. * Fix default rank macro for Latex tables. * Fix string quotes. * Fix bracket location. * Some fixes for the score tables (#76) * Small fixes. * Fix default rank macro for Latex tables. * Fix string quotes. * Fix bracket location. * Some fixes. * Feature/experiment scoring (#77) * Small fixes. * Allow to customize the scoring method used. * Fix URL in UCR datasets. (#79) * Release 0.2.3 --------- Co-authored-by: Carlos Ramos Carreño <vnmabus@gmail.com>
- Loading branch information
1 parent
2231e74
commit 74fb4e4
Showing
41 changed files
with
912 additions
and
760 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,31 @@ | ||
name: Tests | ||
|
||
on: | ||
push: | ||
pull_request: | ||
|
||
jobs: | ||
build: | ||
runs-on: ${{ matrix.os }} | ||
name: Python ${{ matrix.python-version }} on ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, macos-latest, windows-latest] | ||
python-version: ['3.8', '3.9'] | ||
|
||
python-version: ['3.8', '3.9', '3.10'] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- uses: actions/checkout@v3 | ||
- name: Set up Python ${{ matrix.python-version }} on ${{ matrix.os }} | ||
uses: actions/setup-python@v2 | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install dependencies | ||
run: | | ||
pip3 install codecov pytest-cov || pip3 install --user codecov pytest-cov; | ||
- name: Run tests | ||
run: | | ||
#pip3 debug --verbose . | ||
pip3 install --upgrade-strategy eager -v ".[test]" | ||
coverage run --source=skdatasets/ -m pytest; | ||
coverage xml -o coverage.xml # explicitely exporting coverage file to be read by coverage report command. | ||
- name: Archive code coverage results | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: code-coverage-report | ||
path: coverage.xml | ||
path: coverage.xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
import pytest | ||
|
||
collect_ignore = ['setup.py'] | ||
|
||
|
||
def pytest_addoption(parser): | ||
parser.addoption( | ||
"--runslow", action="store_true", default=False, help="run slow tests" | ||
) | ||
|
||
|
||
def pytest_collection_modifyitems(config, items): | ||
if config.getoption("--runslow"): | ||
# --runslow given in cli: do not skip slow tests | ||
return | ||
skip_slow = pytest.mark.skip(reason="need --runslow option to run") | ||
for item in items: | ||
if "slow" in item.keywords: | ||
item.add_marker(skip_slow) | ||
import pytest | ||
|
||
collect_ignore = ["setup.py"] | ||
|
||
|
||
def pytest_addoption(parser): | ||
parser.addoption( | ||
"--runslow", action="store_true", default=False, help="run slow tests" | ||
) | ||
|
||
|
||
def pytest_collection_modifyitems(config, items): | ||
if config.getoption("--runslow"): | ||
# --runslow given in cli: do not skip slow tests | ||
return | ||
skip_slow = pytest.mark.skip(reason="need --runslow option to run") | ||
for item in items: | ||
if "slow" in item.keywords: | ||
item.add_marker(skip_slow) |
Oops, something went wrong.