From d3bd3d0106a60f95425ac487f6ffc6c5152b0d20 Mon Sep 17 00:00:00 2001 From: Will Dean <57733339+wd60622@users.noreply.github.com> Date: Mon, 6 May 2024 09:58:51 +0200 Subject: [PATCH] use grep and sed in the env line (#675) --- .github/workflows/ci.yml | 3 ++- pyproject.toml | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9f47dff6e..a8b2c0d0f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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: diff --git a/pyproject.toml b/pyproject.toml index d898298d4..f2d1fe739 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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",