Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Test on Mac and Windows
  • Loading branch information
crusaderky committed Dec 11, 2025
commit d0112c04fb36610133cc0a252c8fbf473b0ec35f
20 changes: 16 additions & 4 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,30 @@ defaults:

jobs:
test:
name: Python ${{ matrix.python-version }} NumPy ${{ matrix.numpy-version}}
runs-on: ubuntu-latest
name: ${{ matrix.os }} Python ${{ matrix.python-version }} NumPy ${{ matrix.numpy-version}}
runs-on: ${{ matrix.os}}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
python-version: ["3.11", "3.14"]
numpy-version: ["2.3.0", latest]
include:
- python-version: "3.8"
# Test oldest supported Python and NumPy versions
- os: ubuntu-latest
python-version: "3.8"
numpy-version: "1.18.0"
- python-version: "3.14"
# Test vs. NumPy nightly wheels
- os: ubuntu-latest
python-version: "3.14"
numpy-version: "nightly"
# Test issues re. preinstalled SSL certificates on different OSes
- os: windows-latest
python-version: "3.14"
numpy-version: latest
- os: macos-latest
python-version: "3.14"
numpy-version: latest

steps:
- name: Checkout
Expand Down
3 changes: 3 additions & 0 deletions ml_datasets/test/test_datasets.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import platform

import pytest
import numpy as np

Expand Down Expand Up @@ -59,6 +61,7 @@ def test_reuters():
# TODO test output contents


@pytest.mark.xfail(platform.system() == "Windows", reason="path issues")
def test_snli():
train, dev = ml_datasets.snli()
# TODO test output contents
Expand Down