Skip to content

build(deps): bump category-encoders from 2.6.4 to 2.7.0 #313

build(deps): bump category-encoders from 2.6.4 to 2.7.0

build(deps): bump category-encoders from 2.6.4 to 2.7.0 #313

Workflow file for this run

# Copyright 2023-2024 The SapientML Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
name: Testing
on:
pull_request:
branches:
- main
env:
POETRY_VERSION: "1.5.1"
POETRY_URL: https://install.python-poetry.org
jobs:
test:
strategy:
matrix:
version: ["3.10", "3.11"]
test: [test_misc, test_regressor_works_number, test_regressor_works_with_nosparse,
test_classifier_category_binary_num_noproba, test_classifier_category_binary_num_proba,
test_classifier_category_multi_nonnum_metric_noproba, test_classifier_category_multi_nonnum_metric_proba,
test_classifier_category_binary_boolean_metric_noproba, test_classifier_category_binary_boolean_metric_proba,
test_classifier_category_binary_num_use_proba_with_metric_default_noproba, test_classifier_category_multi_nonnum_noproba_metric_with_proba,
test_classifier_notext_nonegative_explanatry, test_classifier_works_with,
]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python ${{ matrix.version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.version }}
- name: Install Poetry
run: |
curl -sSL ${{ env.POETRY_URL }} | python - --version ${{ env.POETRY_VERSION }}
echo "$HOME/.local/bin" >> $GITHUB_PATH
- name: Install Dependencies
run: poetry install
- name: Pytest
run: poetry run -- pytest -k ${{ matrix.test }}
- name: Upload Coverage
uses: actions/upload-artifact@v3
with:
name: ${{ matrix.test }}
include-hidden-files: true
path: .coverage
retention-days: 1
report_coverage:
runs-on: ubuntu-latest
needs:
- test
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: 3.11
- name: Download Coverage Files
uses: actions/download-artifact@v3
- name: Install coverage
run: pip install coverage
- name: Combine Coverage Files
run: |
mv --backup=t */.coverage .
coverage combine -a
coverage report
- name: Report Coverage to CodeCov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}