File tree 3 files changed +42
-7
lines changed
3 files changed +42
-7
lines changed Original file line number Diff line number Diff line change @@ -358,12 +358,12 @@ jobs:
358
358
- name : Cache conda
359
359
uses : actions/cache@v3
360
360
env :
361
- # Increase this value to reset cache if environment-test .yml has not changed
361
+ # Increase this value to reset cache if environment-jax .yml has not changed
362
362
CACHE_NUMBER : 0
363
363
with :
364
364
path : ~/conda_pkgs_dir
365
365
key : ${{ runner.os }}-py${{matrix.python-version}}-conda-${{ env.CACHE_NUMBER }}-${{
366
- hashFiles('conda-envs/environment-test .yml') }}
366
+ hashFiles('conda-envs/environment-jax .yml') }}
367
367
- name : Cache multiple paths
368
368
uses : actions/cache@v3
369
369
env :
@@ -383,7 +383,7 @@ jobs:
383
383
mamba-version : " *"
384
384
activate-environment : pymc-test
385
385
channel-priority : strict
386
- environment-file : conda-envs/environment-test .yml
386
+ environment-file : conda-envs/environment-jax .yml
387
387
python-version : ${{matrix.python-version}}
388
388
use-mamba : true
389
389
use-only-tar-bz2 : false # IMPORTANT: This may break caching of conda packages! See https://github.com/conda-incubator/setup-miniconda/issues/267
@@ -392,10 +392,6 @@ jobs:
392
392
conda activate pymc-test
393
393
pip install -e .
394
394
python --version
395
- - name : Install external samplers
396
- run : |
397
- conda activate pymc-test
398
- pip install "numpyro>=0.8.0" "blackjax>=1.0.0"
399
395
- name : Run tests
400
396
run : |
401
397
python -m pytest -vv --cov=pymc --cov-report=xml --no-cov-on-fail --cov-report term --durations=50 $TEST_SUBSET
Original file line number Diff line number Diff line change
1
+ # "test" conda envs are used to set up our CI environment in GitHub actions
2
+ name : pymc-test
3
+ channels :
4
+ - conda-forge
5
+ - defaults
6
+ dependencies :
7
+ # Base dependencies
8
+ - arviz>=0.13.0
9
+ - blas
10
+ - cachetools>=4.2.1
11
+ - cloudpickle
12
+ - fastprogress>=0.2.0
13
+ - h5py>=2.7
14
+ # Jaxlib version must not be greater than jax version!
15
+ - blackjax>=1.0.0
16
+ - jaxlib==0.4.14
17
+ - jax==0.4.16
18
+ - libblas=*=*mkl
19
+ - mkl-service
20
+ - numpy>=1.15.0
21
+ - numpyro>=0.8.0
22
+ - pandas>=0.24.0
23
+ - pip
24
+ - pytensor>=2.17.0,<2.18
25
+ - python-graphviz
26
+ - networkx
27
+ - scipy>=1.4.1
28
+ - typing-extensions>=3.7.4
29
+ # Extra dependencies for testing
30
+ - ipython>=7.16
31
+ - pre-commit>=2.8.0
32
+ - pytest-cov>=2.5
33
+ - pytest>=3.0
34
+ - mypy=1.5.1
35
+ - types-cachetools
36
+ - pip :
37
+ - numdifftools>=0.9.40
38
+ - mcbackend>=0.4.0
Original file line number Diff line number Diff line change 54
54
"networkx" ,
55
55
"blas" ,
56
56
"jax" ,
57
+ "jaxlib" ,
57
58
}
58
59
RENAME = {}
59
60
You can’t perform that action at this time.
0 commit comments