Skip to content

Commit 3b4a70a

Browse files
authored
Merge pull request #10 from gperdrizet/dev
Updates to PR review and publication workflow
2 parents c820336 + 5f3cbe8 commit 3b4a70a

File tree

6 files changed

+74
-68
lines changed

6 files changed

+74
-68
lines changed

.github/workflows/pr-validation.yml

Lines changed: 0 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -29,67 +29,3 @@ jobs:
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/
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
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

CITATION.cff

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,5 @@ keywords:
2424
- data-science
2525
- Python
2626
license: GPL-3.0
27-
version: 1.0.0
27+
version: 1.0.1
2828
date-released: 2025-11-17

docs/source/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
project = 'Hill Climber'
99
copyright = '2025, Hill Climber Contributors'
1010
author = 'Hill Climber Contributors'
11-
release = '1.0.0'
11+
release = '1.0.1'
1212

1313
# -- General configuration ---------------------------------------------------
1414
extensions = [

hill_climber/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
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

4747
from .optimizer import HillClimber

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "parallel-hill-climber"
7-
version = "1.0.0"
7+
version = "1.0.1"
88
authors = [
99
{name = "gperdrizet", email = "[email protected]"},
1010
]

0 commit comments

Comments
 (0)