diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f1909738..65d63e40 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -10,10 +10,16 @@ on: - "tests/**" - "setup.py" - "pyproject.toml" - - "buildosx" - "conda-envs/**" - "codecov.yml" +# Cancels all previous workflow runs for pull requests that have not completed. +concurrency: + # The concurrency group contains the workflow name and the branch name for pull requests + # or the commit hash for any other events. + group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }} + cancel-in-progress: true + jobs: ubuntu: strategy: @@ -37,7 +43,7 @@ jobs: shell: bash -leo pipefail {0} steps: - uses: actions/checkout@v4 - - uses: mamba-org/setup-micromamba@v1 + - uses: mamba-org/setup-micromamba@v2 with: environment-file: conda-envs/environment-test.yml create-args: >- @@ -80,10 +86,10 @@ jobs: shell: cmd /C call {0} steps: - uses: actions/checkout@v4 - - uses: mamba-org/setup-micromamba@v1 + - uses: mamba-org/setup-micromamba@v2 with: - environment-file: conda-envs/windows-environment-test.yml - micromamba-version: "1.5.10-0" # Until https://github.com/mamba-org/mamba/issues/3467 is not fixed + environment-file: conda-envs/environment-test.yml + micromamba-version: "latest" create-args: >- python=${{matrix.python-version}} environment-name: pymc-extras-test diff --git a/conda-envs/environment-test.yml b/conda-envs/environment-test.yml index 260c7b0e..f13bcfcf 100644 --- a/conda-envs/environment-test.yml +++ b/conda-envs/environment-test.yml @@ -3,15 +3,17 @@ channels: - conda-forge - nodefaults dependencies: -- pymc>=5.21 -- pytest-cov>=2.5 -- pytest>=3.0 -- dask<2025.1.1 -- xhistogram -- statsmodels -- numba<=0.60.0 -- pip -- pip: - - blackjax + - pymc>=5.21.1 - scikit-learn - - better_optimize + - better-optimize + - dask<2025.1.1 + - xhistogram + - statsmodels + - numba + - pytest + - pytest-cov + - libgcc<15 + - pip + - pip: + - jax + - blackjax diff --git a/conda-envs/windows-environment-test.yml b/conda-envs/windows-environment-test.yml deleted file mode 100644 index 6a92aea5..00000000 --- a/conda-envs/windows-environment-test.yml +++ /dev/null @@ -1,17 +0,0 @@ -name: pymc-extras-test -channels: -- conda-forge -- defaults -dependencies: -- pip -- pytest-cov>=2.5 -- pytest>=3.0 -- dask<2025.1.1 -- xhistogram -- statsmodels -- numba<=0.60.0 -- pymc>=5.21 -- pip: - - blackjax - - scikit-learn - - better_optimize