Skip to content

Commit 0b4098f

Browse files
Update Test CI (#474)
* update ci and simplify test env * Remove default channel when setting up ci env * Cancel test runs on PRs if another commit comes in * revert some changes, pin libgcc<15 * use correct shell name
1 parent 66caebd commit 0b4098f

File tree

3 files changed

+24
-33
lines changed

3 files changed

+24
-33
lines changed

.github/workflows/test.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,16 @@ on:
1010
- "tests/**"
1111
- "setup.py"
1212
- "pyproject.toml"
13-
- "buildosx"
1413
- "conda-envs/**"
1514
- "codecov.yml"
1615

16+
# Cancels all previous workflow runs for pull requests that have not completed.
17+
concurrency:
18+
# The concurrency group contains the workflow name and the branch name for pull requests
19+
# or the commit hash for any other events.
20+
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }}
21+
cancel-in-progress: true
22+
1723
jobs:
1824
ubuntu:
1925
strategy:
@@ -37,7 +43,7 @@ jobs:
3743
shell: bash -leo pipefail {0}
3844
steps:
3945
- uses: actions/checkout@v4
40-
- uses: mamba-org/setup-micromamba@v1
46+
- uses: mamba-org/setup-micromamba@v2
4147
with:
4248
environment-file: conda-envs/environment-test.yml
4349
create-args: >-
@@ -80,10 +86,10 @@ jobs:
8086
shell: cmd /C call {0}
8187
steps:
8288
- uses: actions/checkout@v4
83-
- uses: mamba-org/setup-micromamba@v1
89+
- uses: mamba-org/setup-micromamba@v2
8490
with:
85-
environment-file: conda-envs/windows-environment-test.yml
86-
micromamba-version: "1.5.10-0" # Until https://github.com/mamba-org/mamba/issues/3467 is not fixed
91+
environment-file: conda-envs/environment-test.yml
92+
micromamba-version: "latest"
8793
create-args: >-
8894
python=${{matrix.python-version}}
8995
environment-name: pymc-extras-test

conda-envs/environment-test.yml

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,17 @@ channels:
33
- conda-forge
44
- nodefaults
55
dependencies:
6-
- pymc>=5.21
7-
- pytest-cov>=2.5
8-
- pytest>=3.0
9-
- dask<2025.1.1
10-
- xhistogram
11-
- statsmodels
12-
- numba<=0.60.0
13-
- pip
14-
- pip:
15-
- blackjax
6+
- pymc>=5.21.1
167
- scikit-learn
17-
- better_optimize
8+
- better-optimize
9+
- dask<2025.1.1
10+
- xhistogram
11+
- statsmodels
12+
- numba
13+
- pytest
14+
- pytest-cov
15+
- libgcc<15
16+
- pip
17+
- pip:
18+
- jax
19+
- blackjax

conda-envs/windows-environment-test.yml

Lines changed: 0 additions & 17 deletions
This file was deleted.

0 commit comments

Comments
 (0)