Skip to content

Commit

Permalink
MAINT Try coverage config specify pyproject.toml (#285)
Browse files Browse the repository at this point in the history
* Fix coverage in GH Actions

---------

Signed-off-by: Adam Li <adam2392@gmail.com>
  • Loading branch information
adam2392 committed Jun 20, 2024
1 parent 3cfb082 commit b8da7b0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -230,10 +230,8 @@ jobs:
run: |
./spin --help
./spin coverage
# pytest -k . --tb=short --cov=sktree --cov-report xml --color=yes
# python -m pytest -k . -o 'python_functions=test_*' sktree --cov=sktree --cov-report=xml
# pytest -k . --cov=sktree --cov-report xml --color=yes
cp $PWD/build-install/usr/lib/python${{matrix.python-version}}/site-packages/coverage.xml ./coverage.xml
ls .
# cp $PWD/build-install/usr/lib/python${{matrix.python-version}}/site-packages/coverage.xml ./coverage.xml
- name: Upload coverage stats to codecov
uses: codecov/codecov-action@v4
Expand Down
2 changes: 2 additions & 0 deletions .spin/cmds.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ def coverage(ctx, slowtest=True):
"sktree",
"--cov=sktree",
"--cov-report=xml",
"--cov-config=pyproject.toml",
"-k .",
)
else:
Expand All @@ -32,6 +33,7 @@ def coverage(ctx, slowtest=True):
"sktree",
"--cov=sktree",
"--cov-report=xml",
"--cov-config=pyproject.toml",
)

# The spin `build` command doesn't know anything about `custom_arg`,
Expand Down
2 changes: 1 addition & 1 deletion sktree/_lib/sklearn_fork
Submodule sklearn_fork updated 38 files
+1 −1 .github/workflows/check-changelog.yml
+1 −1 .github/workflows/check-sdist.yml
+5 −3 .github/workflows/cuda-gpu-ci.yml
+1 −1 .github/workflows/labeler-title-regex.yml
+4 −4 .github/workflows/lint.yml
+1 −1 .github/workflows/publish_pypi.yml
+1 −1 .github/workflows/update-lock-files.yml
+1 −1 .github/workflows/update_tracking_issue.yml
+11 −7 .github/workflows/wheels.yml
+9 −23 azure-pipelines.yml
+39 −0 build_tools/azure/cpython_free_threaded_lock.txt
+17 −0 build_tools/azure/cpython_free_threaded_requirements.txt
+1 −1 build_tools/azure/debian_atlas_32bit_lock.txt
+24 −11 build_tools/azure/install.sh
+7 −7 build_tools/azure/pylatest_conda_forge_mkl_linux-64_conda.lock
+6 −6 build_tools/azure/pylatest_conda_forge_mkl_osx-64_conda.lock
+1 −1 build_tools/azure/pylatest_conda_mkl_no_openmp_osx-64_conda.lock
+1 −1 build_tools/azure/pylatest_pip_openblas_pandas_linux-64_conda.lock
+2 −2 build_tools/azure/pylatest_pip_scipy_dev_linux-64_conda.lock
+1 −1 build_tools/azure/pymin_conda_defaults_openblas_linux-64_conda.lock
+6 −6 build_tools/azure/pymin_conda_forge_mkl_win-64_conda.lock
+7 −7 build_tools/azure/pymin_conda_forge_openblas_ubuntu_2204_linux-64_conda.lock
+0 −73 build_tools/azure/python_nogil_lock.txt
+0 −20 build_tools/azure/python_nogil_requirements.txt
+1 −1 build_tools/azure/test_docs.sh
+1 −1 build_tools/azure/ubuntu_atlas_lock.txt
+17 −17 build_tools/circle/doc_linux-64_conda.lock
+14 −14 build_tools/circle/doc_min_dependencies_linux-64_conda.lock
+4 −4 build_tools/cirrus/pymin_conda_forge_linux-aarch64_conda.lock
+22 −22 build_tools/github/pylatest_conda_forge_cuda_array-api_linux-64_conda.lock
+1 −1 build_tools/shared.sh
+1 −1 doc/developers/contributing.rst
+1 −1 doc/metadata_routing.rst
+5 −0 doc/whats_new/v1.6.rst
+74 −19 sklearn/compose/_target.py
+3 −0 sklearn/neighbors/_nearest_centroid.py
+8 −1 sklearn/tests/test_metaestimators_metadata_routing.py
+2 −9 sklearn/tree/_tree.pyx

0 comments on commit b8da7b0

Please sign in to comment.