Skip to content

Commit

Permalink
use grep and sed in the env line (#675)
Browse files Browse the repository at this point in the history
  • Loading branch information
wd60622 authored and twiecki committed Sep 10, 2024
1 parent 4efbc56 commit d3bd3d0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ on:
branches: [main]

env:
OLDEST_PYMC_VERSION: "5.12.0"
# The lower bound from the pyproject.toml file
OLDEST_PYMC_VERSION: "$(grep -E 'pymc *>' pyproject.toml | sed 's/[^0-9\\.]*//g')"

jobs:
test:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ dependencies = [
"matplotlib>=3.5.1",
"numpy>=1.17",
"pandas",
# NOTE: Keep minimum pymc version in sync with ci.yml `OLDEST_PYMC_VERSION`
# NOTE: Used as minimum pymc version with ci.yml `OLDEST_PYMC_VERSION`
"pymc>=5.12.0",
"scikit-learn>=1.1.1",
"seaborn>=0.12.2",
Expand Down

0 comments on commit d3bd3d0

Please sign in to comment.