Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
b2276c0
Renaming package to stochas
Hydrowelder Apr 4, 2026
7008556
Update readme
Hydrowelder Apr 4, 2026
a4b159a
Update license
Hydrowelder Apr 4, 2026
6f2ea01
Update readme link
Hydrowelder Apr 4, 2026
1a1a2af
Updated project urls
Hydrowelder Apr 4, 2026
668c827
Branding update
Hydrowelder Apr 4, 2026
9b04bed
Bump version
Hydrowelder Apr 4, 2026
455a8b4
Added auto release to workflow
Hydrowelder Apr 4, 2026
eda3fa1
Update workflow
Hydrowelder Apr 4, 2026
380ae75
Only run act-test on changes to source code
Hydrowelder Apr 4, 2026
6ac7c97
Skip uv publish if the version is already out there
Hydrowelder Apr 4, 2026
ff217b2
Update workflow
Hydrowelder Apr 4, 2026
98ee254
Bump version
Hydrowelder Apr 4, 2026
b168505
Bump version
Hydrowelder Apr 6, 2026
034193c
Added support for python 3.14
Hydrowelder Apr 17, 2026
74aee4a
Bump version
Hydrowelder Apr 17, 2026
c2605ce
Fix to use main instead of master
Hydrowelder Apr 17, 2026
0d2ea34
Update badge link to use 'main' branch
Hydrowelder Apr 18, 2026
dfb9716
Switching to use a sentinel value instead of overloading the NamedVal…
Hydrowelder Apr 18, 2026
7f514ab
Fixes to named value serialization with generic types
Hydrowelder Apr 19, 2026
776c249
Merge branch 'main' of https://github.com/Hydrowelder/stochas
Hydrowelder Apr 19, 2026
fcf1a95
Inherited from MuJoCo Mojo
Hydrowelder Apr 21, 2026
2ef4eb7
Added more optimization functionality
Hydrowelder Apr 21, 2026
a0fec13
Updated logo
Hydrowelder Apr 24, 2026
93e1273
Update CSS and logo
Hydrowelder Apr 24, 2026
f4d38dc
Added logo to readme
Hydrowelder Apr 24, 2026
14da87c
Added abstracts for user guides
Hydrowelder Apr 25, 2026
13d0f7f
Replace UL list characters
Hydrowelder May 2, 2026
2fa8fe2
Bump version
Hydrowelder May 2, 2026
04c7ea2
Fixes for multiprocessing
Hydrowelder May 7, 2026
4873db6
Fix badges
Hydrowelder May 11, 2026
8d60fce
Fixed the sample_dist bug where repeated calls would crash the code r…
Hydrowelder May 28, 2026
abd48d6
Added rayleigh distribution and validations for design variables
Hydrowelder Jun 13, 2026
b491c50
Updated figures to sweep different distributions
Hydrowelder Jun 13, 2026
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
119 changes: 0 additions & 119 deletions .github/workflows/publish.yml

This file was deleted.

80 changes: 80 additions & 0 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
name: "Publish"

on:
push:
branches: ["main"] # Run tests on every push to main
tags: ["v*"] # Run tests AND publish on tags
pull_request:
branches: ["main"] # Run tests on PRs

jobs:
test:
name: "Test (Python ${{ matrix.python-version }})"
runs-on: ubuntu-latest
strategy:
matrix:
# Parallelize tests across your supported versions
python-version: ["3.12", "3.13", "3.14"]

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

- name: Install uv
uses: astral-sh/setup-uv@v5
with:
enable-cache: true

- name: Install Python ${{ matrix.python-version }}
run: uv python install ${{ matrix.python-version }}

- name: Run unit tests
# Explicitly tells uv which python version to use for the test environment
run: uv run --python ${{ matrix.python-version }} --group dev pytest
publish:
name: "Build and Publish"
needs: [test]
# ONLY run this job if the push was actually a tag
if: startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-latest
environment:
name: pypi
permissions:
id-token: write # Required for PyPI Trusted Publishing
contents: write # Required to create GitHub Release and upload assets
steps:
- name: Checkout
uses: actions/checkout@v6
with:
# Fetch all history so we can see other branches
fetch-depth: 0

- name: Verify Tag is on Main
# Only perform this check if we were triggered by a tag
if: startsWith(github.ref, 'refs/tags/v')
run: |
# Check if 'main' branch contains the current commit
if ! git branch -r --contains ${{ github.sha }} | grep -q "origin/main"; then
echo "::error::Tag ${{ github.ref_name }} was pushed on a non-main branch. Skipping workflow."
exit 1
fi

- name: Install uv
uses: astral-sh/setup-uv@v7

- name: Install Python 3.13
run: uv python install 3.13

- name: Build
run: uv build

- name: Publish to PyPI
run: uv publish --check-url https://pypi.org/simple

- name: Create GitHub Release
uses: softprops/action-gh-release@v2
with:
generate_release_notes: true
files: |
dist/*.whl
dist/*.tar.gz
9 changes: 9 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,12 @@ repos:
rev: v1.1.408
hooks:
- id: pyright
- repo: local
hooks:
- id: act-test
name: Run GitHub Actions locally (act)
entry: act -j test
language: system
stages: [pre-push]
pass_filenames: false
files: ^(src/|tests/|pyproject\.toml|uv\.lock)
Loading
Loading