Skip to content

Commit

Permalink
Merge branch 'main' into dev/build-py313
Browse files Browse the repository at this point in the history
  • Loading branch information
reidjohnson committed Jan 21, 2025
2 parents c3bab78 + 2a81909 commit 0b8c1d5
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 27 deletions.
51 changes: 25 additions & 26 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
name: publish

on: push
#push:
# branches:
# - main
# tags:
# - 'v*.*.*'
on:
push:
branches:
- main
tags:
- 'v*.*.*'

jobs:
build_wheels:
Expand All @@ -21,9 +21,9 @@ jobs:
- name: Build wheels
uses: pypa/[email protected]
env:
CIBW_BUILD: cp3*-*
CIBW_BUILD: cp39-* cp310-* cp311-* cp312-* cp313-
CIBW_SKIP: pp* *i686* *win32 *musllinux*
CIBW_PROJECT_REQUIRES_PYTHON: '>=3.9'
CIBW_PROJECT_REQUIRES_PYTHON: '>=3.9,<3.14'
CIBW_BEFORE_BUILD: pip install --verbose --editable .
CIBW_ARCHS_LINUX: auto64
CIBW_ARCHS_MACOS: x86_64 universal2 arm64
Expand All @@ -44,7 +44,6 @@ jobs:
name: Install Python
with:
python-version: '3.13'
allow-prereleases: true

- run: pip install build

Expand All @@ -56,22 +55,22 @@ jobs:
name: artifact-source
path: dist/*.tar.gz

#upload_pypi:
# needs: [build_wheels, build_sdist]
# runs-on: ubuntu-latest
upload_pypi:
needs: [build_wheels, build_sdist]
runs-on: ubuntu-latest

# if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v')
# steps:
# - uses: actions/download-artifact@v4
# with:
# path: dist
# pattern: artifact-*
# merge-multiple: true
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v')
steps:
- uses: actions/download-artifact@v4
with:
path: dist
pattern: artifact-*
merge-multiple: true

# - uses: pypa/[email protected].2
# with:
# user: __token__
# password: ${{ secrets.PYPI_PASSWORD }}
# # To test, uncomment the following:
# # password: ${{ secrets.TEST_PYPI_PASSWORD }}
# # repository-url: https://test.pypi.org/legacy/
- uses: pypa/[email protected].3
with:
user: __token__
password: ${{ secrets.PYPI_PASSWORD }}
# To test, uncomment the following:
# password: ${{ secrets.TEST_PYPI_PASSWORD }}
# repository-url: https://test.pypi.org/legacy/
2 changes: 1 addition & 1 deletion quantile_forest/_quantile_forest.py
Original file line number Diff line number Diff line change
Expand Up @@ -1301,7 +1301,7 @@ class RandomForestQuantileRegressor(BaseForestQuantileRegressor):
>>> qrf.fit(X[:1000], y[:1000])
RandomForestQuantileRegressor(random_state=0)
>>> qrf.score(X, y, quantiles=0.5)
0.359...
0.35...
"""

def __init__(
Expand Down

0 comments on commit 0b8c1d5

Please sign in to comment.