Skip to content

Commit

Permalink
final commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Valentin-Laurent committed Jan 9, 2025
1 parent 6d268c9 commit 2e6e12e
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 1 deletion.
61 changes: 61 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
name: Unit tests

on:
push:
branches:
-dev
-main
-master
pull_request:

jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: ubuntu-latest
python-version: "3.7"
numpy-version: 1.21.4
- os: ubuntu-latest
python-version: "3.8"
numpy-version: 1.21.4
- os: ubuntu-latest
python-version: "3.9"
numpy-version: 1.21.4
- os: ubuntu-latest
python-version: "3.10"
numpy-version: 1.22.4
- os: ubuntu-latest
python-version: "3.11"
numpy-version: 1.25.2
- os: windows-latest
python-version: "3.11"
numpy-version: 1.25.2
- os: macos-latest
python-version: "3.10"
numpy-version: 1.25.2
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 numpy
run: conda install numpy=${{ matrix.numpy-version }}
- name: Check linting
run: make lint
- name: Check static typing
run: make type-check
- name: Test with pytest
run: make coverage
- name: Code coverage
run: codecov
2 changes: 1 addition & 1 deletion mapie/metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +560,7 @@ def regression_ssc_score(
Examples
--------
>>> from mapie.metrics import regression_ssc
>>> from mapie.metrics import regression_ssc_score
>>> import numpy as np
>>> y_true = np.array([5, 7.5, 9.5])
>>> y_intervals = np.array([
Expand Down

0 comments on commit 2e6e12e

Please sign in to comment.