Skip to content

Commit

Permalink
Patch Python 3.8 Build (#17)
Browse files Browse the repository at this point in the history
* Update build to test Python 3.8
* Fix type hints for Python 3.8
  • Loading branch information
reidjohnson authored Oct 25, 2023
1 parent 7ca3f3e commit d246e37
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,19 @@ on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v4

- name: Set up Python 3.12
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: '3.12'
python-version: ${{ matrix.python-version }}
cache: 'pip'
cache-dependency-path: pyproject.toml

Expand Down
4 changes: 2 additions & 2 deletions quantile_forest/tests/test_quantile_forest.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import math
import warnings
from typing import Any
from typing import Any, Dict

import numpy as np
import pytest
Expand Down Expand Up @@ -41,7 +41,7 @@
X_california = california.data[perm]
y_california = california.target[perm]

FOREST_REGRESSORS: dict[str, Any] = {
FOREST_REGRESSORS: Dict[str, Any] = {
"ExtraTreesQuantileRegressor": ExtraTreesQuantileRegressor,
"RandomForestQuantileRegressor": RandomForestQuantileRegressor,
}
Expand Down

0 comments on commit d246e37

Please sign in to comment.