Skip to content

Commit

Permalink
Lock to specific versions
Browse files Browse the repository at this point in the history
  • Loading branch information
dhadka committed Sep 5, 2024
1 parent 0445c3d commit 2f82e18
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 14 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ name: Examples

on:
workflow_dispatch:
inputs:
python-version:
type: string
description: Version of Python (e.g., 3.12)
required: false
schedule: # Run once a week to detect any regressions
- cron: '0 0 * * 1'

Expand All @@ -26,10 +31,14 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Get minimum Python version
- name: Get Python version
run: |
#PYTHON_VERSION=$(cat pyproject.toml | grep "requires-python" | grep -Eo "[0-9]+\.[0-9]+")
PYTHON_VERSION="3.12"
PYTHON_VERSION="${{ inputs.python-version }}"
if [ -z "${{ inputs.python-version }}" ]; then
PYTHON_VERSION=$(cat pyproject.toml | grep "requires-python" | grep -Eo "[0-9]+\.[0-9]+")
fi
echo "PYTHON_VERSION=${PYTHON_VERSION}" >> $GITHUB_ENV
- name: Set up Python ${{ env.PYTHON_VERSION }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]

steps:
- uses: actions/checkout@v4
Expand Down
20 changes: 10 additions & 10 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@ authors = [
]
readme = "README.md"
license = { file="COPYING" }
requires-python = ">= 3.9"
requires-python = ">= 3.8"
dependencies = [
"numpy",
"seaborn",
"mplcursors",
"pydot",
"prim",
"SALib",
"numpy<=1.26.3",
"seaborn<=0.13.1",
"scikit-learn<=1.4.0",
"mplcursors<=0.5.3",
"pydot<=2.0.0",
"SALib<=1.4.6.1",
"platypus-opt",
"scikit-learn"
"prim"
]
dynamic = ["version"] # Version is read from rhodium/__init__.py

Expand All @@ -28,8 +28,8 @@ dynamic = ["version"] # Version is read from rhodium/__init__.py
"Bug Tracker" = "https://github.com/Project-Platypus/Rhodium/issues"

[project.optional-dependencies]
test = ["pytest", "mock", "pyper"]
openmdao = ["openmdao"]
test = ["pytest", "mock", "pyper<=1.1.1"]
openmdao = ["openmdao<=3.30.0"]

[tool.setuptools.dynamic]
version = {attr = "rhodium.__version__"}

0 comments on commit 2f82e18

Please sign in to comment.