diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 4a98d1f74..23f9bbe86 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -50,13 +50,11 @@ jobs: python-version: ${{ matrix.config.python-version }} cache: "pip" cache-dependency-path: "pyproject.toml" - - name: Install oldest version of PyMC - if: ${{ matrix.config.oldest-pymc }} - run: pip install pymc==${{ env.OLDEST_PYMC_VERSION }} - name: Run tests run: | sudo apt-get install graphviz graphviz-dev - pip install -e .[test] + pip install -e . + pip install -e .[test] --force-reinstall pytest ${{ matrix.split }} - name: Check oldest version of PyMC if: ${{ matrix.config.oldest-pymc }} @@ -88,7 +86,8 @@ jobs: - name: Run tests run: | sudo apt-get install graphviz graphviz-dev - pip install -e .[test] + pip install -e . + pip install -e .[test] --force-reinstall pytest --only-slow ${{ matrix.split }} - name: Upload coverage to Codecov uses: codecov/codecov-action@v5 diff --git a/.github/workflows/test_notebook.yml b/.github/workflows/test_notebook.yml index a6359917a..25b55a7d7 100644 --- a/.github/workflows/test_notebook.yml +++ b/.github/workflows/test_notebook.yml @@ -34,6 +34,7 @@ jobs: - name: Install dependencies run: | sudo apt-get install graphviz graphviz-dev - pip install -e .[docs,test,dag] + pip install -e . + pip install -e .[docs,test,dag] --force-reinstall - name: Run notebooks run: make run_notebooks diff --git a/pyproject.toml b/pyproject.toml index 413e09aa5..2e917f78e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -30,9 +30,7 @@ dependencies = [ "numpy>=1.17", "pandas", "pydantic>=2.1.0", - # NOTE: Used as minimum pymc version with test.yml `OLDEST_PYMC_VERSION` - "pymc>=5.22.0,<5.23.0", - "pytensor>=2.30.3", + "pytensor @ git+https://github.com/zaxtax/pytensor.git@blockwise_scan_hack", "scikit-learn>=1.1.1", "seaborn>=0.12.2", "xarray>=2024.1.0", @@ -73,6 +71,7 @@ docs = [ ] lint = ["mypy", "pandas-stubs", "pre-commit>=2.19.0", "ruff>=0.1.4"] test = [ + "pymc>=5.22.0", "blackjax", "nutpie", "numpyro", @@ -97,6 +96,9 @@ exclude = ["docs"] path = "pymc_marketing/version.py" # +[tool.hatch.metadata] +allow-direct-references = true + [tool.hatch.metadata.hooks.fancy-pypi-readme] content-type = "text/markdown"