ENH: add ability to handle multi-dimensional thresholds #4129
Workflow file for this run
This file contains hidden or 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
| name: Unit tests | |
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| jobs: | |
| get-latest-python: | |
| runs-on: ubuntu-latest | |
| outputs: | |
| latest-python: ${{ steps.latest.outputs.version }} | |
| steps: | |
| - uses: snok/latest-python-versions@v1 | |
| id: latest | |
| with: | |
| min-version: "3.13" | |
| build: | |
| needs: get-latest-python | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| include: | |
| # minimum supported dependencies | |
| - os: ubuntu-latest | |
| python-version: "3.9" | |
| numpy-version: "=1.23" | |
| sklearn-version: "=1.4" | |
| ruff-version: "=0.14.2" | |
| # latest stable dependencies | |
| - os: ubuntu-latest | |
| python-version: "${{ needs.get-latest-python.outputs.latest-python }}" | |
| numpy-version: "" | |
| sklearn-version: "" | |
| ruff-version: "" | |
| - os: windows-latest | |
| python-version: "${{ needs.get-latest-python.outputs.latest-python }}" | |
| numpy-version: "" | |
| sklearn-version: "" | |
| ruff-version: "" | |
| - os: macos-latest | |
| python-version: "${{ needs.get-latest-python.outputs.latest-python }}" | |
| numpy-version: "" | |
| sklearn-version: "" | |
| ruff-version: "" | |
| defaults: | |
| run: | |
| shell: bash -l {0} | |
| steps: | |
| - name: Git clone | |
| uses: actions/checkout@v2 | |
| - name: Set up virtual environment | |
| uses: conda-incubator/setup-miniconda@v2 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| environment-file: environment.ci.yml | |
| channels: defaults, conda-forge | |
| miniconda-version: "latest" | |
| - name: Install ruff | |
| run: conda install ruff${{ matrix.ruff-version }} | |
| - name: Install numpy | |
| run: conda install numpy${{ matrix.numpy-version }} | |
| - name: Install sklearn | |
| run: conda install scikit-learn${{ matrix.sklearn-version }} | |
| - name: Check linting | |
| run: make lint | |
| - name: Check format | |
| run: make format | |
| - name: Check static typing | |
| run: make type-check | |
| - name: Test and coverage with pytest | |
| run: make coverage | |
| - name: Code coverage | |
| run: codecov |