Skip to content

Commit

Permalink
Rename argument for SKL compatibility (#822)
Browse files Browse the repository at this point in the history
  • Loading branch information
lbittarello authored Aug 7, 2024
1 parent 4fc02bf commit 5bcdf6f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,20 +27,23 @@ jobs:
fail-fast: true
matrix:
include:
- { os: ubuntu-latest, environment: 'py39' }
- { os: ubuntu-latest, environment: 'py310' }
- { os: ubuntu-latest, environment: 'py311' }
- { os: ubuntu-latest, environment: 'py312' }
- { os: ubuntu-latest, environment: 'oldies' }
- { os: windows-latest, environment: 'py312' }
- { os: macos-latest, environment: 'py312' }
- { os: ubuntu-latest, environment: 'oldies' }
- { os: ubuntu-latest, environment: 'nightly' }
steps:
- name: Checkout branch
uses: actions/checkout@v4
- name: Set up pixi
uses: prefix-dev/setup-pixi@992a3081e2f87829e0fff9fb29f4fe6a5d1e80a2
with:
environments: ${{ matrix.environment }}
- name: Install nightlies
if: matrix.NOTE == 'Nightly Builds'
run: pixi run -e ${{ matrix.environment }} install-nightlies
- name: Install repository
run: pixi run -e ${{ matrix.environment }} postinstall
- name: Run pytest
Expand Down
2 changes: 1 addition & 1 deletion src/glum/_glm.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
_safe_toarray,
)

if version.parse(skl.__version__) < version.parse("1.6"):
if version.parse(skl.__version__).release < (1, 6):
keyword_finiteness = "force_all_finite"
else:
keyword_finiteness = "ensure_all_finite"
Expand Down

0 comments on commit 5bcdf6f

Please sign in to comment.