File tree Expand file tree Collapse file tree 6 files changed +74
-68
lines changed
Expand file tree Collapse file tree 6 files changed +74
-68
lines changed Original file line number Diff line number Diff line change 2929 - name : Run tests
3030 run : |
3131 python tests/run_tests.py
32-
33- test-build :
34- name : Test Build Package
35- needs : test # Only run if tests pass
36- runs-on : ubuntu-latest
37- environment : test-pypi
38- permissions :
39- contents : read
40-
41- steps :
42- - name : Checkout code
43- uses : actions/checkout@v4
44-
45- - name : Set up Python
46- uses : actions/setup-python@v5
47- with :
48- python-version : ' 3.12'
49-
50- - name : Install build dependencies
51- run : |
52- python -m pip install --upgrade pip
53- pip install build twine
54-
55- - name : Build package
56- run : python -m build
57-
58- - name : Check package
59- run : twine check dist/*
60-
61- - name : List distribution contents
62- run : |
63- echo "=== Source Distribution Contents ==="
64- tar tzf dist/*.tar.gz
65- echo ""
66- echo "=== Wheel Contents ==="
67- unzip -l dist/*.whl
68-
69- - name : Upload build artifacts
70- uses : actions/upload-artifact@v4
71- with :
72- name : dist-packages
73- path : dist/
74- retention-days : 7
75-
76- deploy-test :
77- name : Deploy to TestPyPI
78- needs : test-build # Only run if build succeeds
79- runs-on : ubuntu-latest
80- environment : test-pypi
81- permissions :
82- contents : read
83- id-token : write # Required for trusted publishing
84-
85- steps :
86- - name : Download build artifacts
87- uses : actions/download-artifact@v4
88- with :
89- name : dist-packages
90- path : dist/
91-
92- - name : Publish to TestPyPI using Trusted Publishing
93- uses : pypa/gh-action-pypi-publish@release/v1
94- with :
95- repository-url : https://test.pypi.org/legacy/
Original file line number Diff line number Diff line change 1+ name : Publish to TestPyPI
2+
3+ on :
4+ push :
5+ branches : [ main ]
6+
7+ jobs :
8+ test-build :
9+ name : Test Build Package
10+ runs-on : ubuntu-latest
11+ environment : test-pypi
12+ permissions :
13+ contents : read
14+
15+ steps :
16+ - name : Checkout code
17+ uses : actions/checkout@v4
18+
19+ - name : Set up Python
20+ uses : actions/setup-python@v5
21+ with :
22+ python-version : ' 3.12'
23+
24+ - name : Install build dependencies
25+ run : |
26+ python -m pip install --upgrade pip
27+ pip install build twine
28+
29+ - name : Build package
30+ run : python -m build
31+
32+ - name : Check package
33+ run : twine check dist/*
34+
35+ - name : List distribution contents
36+ run : |
37+ echo "=== Source Distribution Contents ==="
38+ tar tzf dist/*.tar.gz
39+ echo ""
40+ echo "=== Wheel Contents ==="
41+ unzip -l dist/*.whl
42+
43+ - name : Upload build artifacts
44+ uses : actions/upload-artifact@v4
45+ with :
46+ name : dist-packages
47+ path : dist/
48+ retention-days : 7
49+
50+ deploy-test :
51+ name : Deploy to TestPyPI
52+ needs : test-build # Only run if build succeeds
53+ runs-on : ubuntu-latest
54+ environment : test-pypi
55+ permissions :
56+ contents : read
57+ id-token : write # Required for trusted publishing
58+
59+ steps :
60+ - name : Download build artifacts
61+ uses : actions/download-artifact@v4
62+ with :
63+ name : dist-packages
64+ path : dist/
65+
66+ - name : Publish to TestPyPI using Trusted Publishing
67+ uses : pypa/gh-action-pypi-publish@release/v1
68+ with :
69+ repository-url : https://test.pypi.org/legacy/
70+ skip-existing : true
Original file line number Diff line number Diff line change @@ -24,5 +24,5 @@ keywords:
2424 - data-science
2525 - Python
2626license : GPL-3.0
27- version : 1.0.0
27+ version : 1.0.1
2828date-released : 2025-11-17
Original file line number Diff line number Diff line change 88project = 'Hill Climber'
99copyright = '2025, Hill Climber Contributors'
1010author = 'Hill Climber Contributors'
11- release = '1.0.0 '
11+ release = '1.0.1 '
1212
1313# -- General configuration ---------------------------------------------------
1414extensions = [
Original file line number Diff line number Diff line change 4141 >>> climber.plot_results((best_data, steps_df), plot_type='histogram')
4242"""
4343
44- __version__ = '1.0.0 '
44+ __version__ = '1.0.1 '
4545__author__ = 'gperdrizet'
4646
4747from .optimizer import HillClimber
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44
55[project ]
66name = " parallel-hill-climber"
7- version = " 1.0.0 "
7+ version = " 1.0.1 "
88authors = [
99 {
name =
" gperdrizet" ,
email =
" [email protected] " },
1010]
You can’t perform that action at this time.
0 commit comments