Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
64 changes: 0 additions & 64 deletions .github/workflows/pr-validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,67 +29,3 @@ jobs:
- name: Run tests
run: |
python tests/run_tests.py
test-build:
name: Test Build Package
needs: test # Only run if tests pass
runs-on: ubuntu-latest
environment: test-pypi
permissions:
contents: read

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'

- name: Install build dependencies
run: |
python -m pip install --upgrade pip
pip install build twine
- name: Build package
run: python -m build

- name: Check package
run: twine check dist/*

- name: List distribution contents
run: |
echo "=== Source Distribution Contents ==="
tar tzf dist/*.tar.gz
echo ""
echo "=== Wheel Contents ==="
unzip -l dist/*.whl
- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: dist-packages
path: dist/
retention-days: 7

deploy-test:
name: Deploy to TestPyPI
needs: test-build # Only run if build succeeds
runs-on: ubuntu-latest
environment: test-pypi
permissions:
contents: read
id-token: write # Required for trusted publishing

steps:
- name: Download build artifacts
uses: actions/download-artifact@v4
with:
name: dist-packages
path: dist/

- name: Publish to TestPyPI using Trusted Publishing
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/
70 changes: 70 additions & 0 deletions .github/workflows/publish-to-testpypi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
name: Publish to TestPyPI

on:
push:
branches: [ main ]

jobs:
test-build:
name: Test Build Package
runs-on: ubuntu-latest
environment: test-pypi
permissions:
contents: read

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'

- name: Install build dependencies
run: |
python -m pip install --upgrade pip
pip install build twine
- name: Build package
run: python -m build

- name: Check package
run: twine check dist/*

- name: List distribution contents
run: |
echo "=== Source Distribution Contents ==="
tar tzf dist/*.tar.gz
echo ""
echo "=== Wheel Contents ==="
unzip -l dist/*.whl
- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: dist-packages
path: dist/
retention-days: 7

deploy-test:
name: Deploy to TestPyPI
needs: test-build # Only run if build succeeds
runs-on: ubuntu-latest
environment: test-pypi
permissions:
contents: read
id-token: write # Required for trusted publishing

steps:
- name: Download build artifacts
uses: actions/download-artifact@v4
with:
name: dist-packages
path: dist/

- name: Publish to TestPyPI using Trusted Publishing
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/
skip-existing: true
2 changes: 1 addition & 1 deletion CITATION.cff
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@ keywords:
- data-science
- Python
license: GPL-3.0
version: 1.0.0
version: 1.0.1
date-released: 2025-11-17
2 changes: 1 addition & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
project = 'Hill Climber'
copyright = '2025, Hill Climber Contributors'
author = 'Hill Climber Contributors'
release = '1.0.0'
release = '1.0.1'

# -- General configuration ---------------------------------------------------
extensions = [
Expand Down
2 changes: 1 addition & 1 deletion hill_climber/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
>>> climber.plot_results((best_data, steps_df), plot_type='histogram')
"""

__version__ = '1.0.0'
__version__ = '1.0.1'
__author__ = 'gperdrizet'

from .optimizer import HillClimber
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "parallel-hill-climber"
version = "1.0.0"
version = "1.0.1"
authors = [
{name = "gperdrizet", email = "[email protected]"},
]
Expand Down