Skip to content

Commit abe5c3f

Browse files
committed
make separate env files
1 parent d7bf529 commit abe5c3f

File tree

5 files changed

+102
-12
lines changed

5 files changed

+102
-12
lines changed

.github/workflows/arviz_compat.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,25 +26,26 @@ jobs:
2626
- name: Cache conda
2727
uses: actions/cache@v1
2828
env:
29-
# Increase this value to reset cache if environment-dev.yml has not changed
29+
# Increase this value to reset cache if environment-dev-py38.yml has not changed
3030
CACHE_NUMBER: 0
3131
with:
3232
path: ~/conda_pkgs_dir
3333
key: ${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-${{
34-
hashFiles('environment-dev.yml') }}
34+
hashFiles('conda-envs/environment-dev-py38.yml') }}
3535
- uses: conda-incubator/setup-miniconda@v2
3636
with:
37-
activate-environment: pymc3-dev
37+
activate-environment: pymc3-dev-py38
3838
channel-priority: strict
39-
environment-file: environment-dev.yml
39+
environment-file: conda-envs/environment-dev-py38.yml
4040
use-only-tar-bz2: true # IMPORTANT: This needs to be set for caching to work properly!
4141
- name: Install pymc3
4242
run: |
43-
conda activate pymc3-dev
43+
conda activate pymc3-dev-py38
4444
pip install -e .
45+
python --version
4546
- name: Install latest arviz
4647
run: |
47-
conda activate pymc3-dev
48+
conda activate pymc3-dev-py38
4849
conda remove arviz -y
4950
pip install git+git://github.com/arviz-devs/arviz.git
5051
- name: Run tests

.github/workflows/pytest.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -66,25 +66,25 @@ jobs:
6666
- name: Cache conda
6767
uses: actions/cache@v1
6868
env:
69-
# Increase this value to reset cache if environment-dev.yml has not changed
69+
# Increase this value to reset cache if environment-dev-py36.yml has not changed
7070
CACHE_NUMBER: 0
7171
with:
7272
path: ~/conda_pkgs_dir
7373
key: ${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-${{
74-
hashFiles('environment-dev.yml') }}
74+
hashFiles('conda-envs/environment-dev-py36.yml') }}
7575
- uses: conda-incubator/setup-miniconda@v2
7676
with:
77-
activate-environment: pymc3-dev
77+
activate-environment: pymc3-dev-py36
7878
channel-priority: strict
79-
environment-file: environment-dev.yml
79+
environment-file: conda-envs/environment-dev-py36.yml
8080
use-only-tar-bz2: true # IMPORTANT: This needs to be set for caching to work properly!
8181
- name: Install-pymc3
8282
run: |
83-
conda activate pymc3-dev
83+
conda activate pymc3-dev-py36
8484
pip install -e .
8585
- name: Run tests
8686
run: |
87-
conda activate pymc3-dev
87+
conda activate pymc3-dev-py36
8888
python -m pytest -vv --cov=pymc3 --cov-report=xml --cov-report term --durations=50 $TEST_SUBSET
8989
- name: Upload coverage to Codecov
9090
uses: codecov/codecov-action@v1

conda-envs/environment-dev-py36.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: pymc3-dev-py36
2+
channels:
3+
- conda-forge
4+
- defaults
5+
dependencies:
6+
- python=3.6
7+
- arviz>=0.9
8+
- theano-pymc==1.0.11
9+
- numpy>=1.13
10+
- scipy>=0.18
11+
- pandas>=0.18
12+
- patsy>=0.5
13+
- fastprogress>=0.2
14+
- h5py>=2.7
15+
- typing-extensions>=3.7
16+
- python-graphviz
17+
- ipython>=7.16
18+
- nbsphinx>=0.4
19+
- numpydoc>=0.9
20+
- pre-commit>=2.8.0
21+
- pytest-cov>=2.5
22+
- pytest>=3.0
23+
- recommonmark>=0.4
24+
- sphinx-autobuild>=0.7
25+
- sphinx>=1.5
26+
- watermark
27+
- dataclasses # python_version < 3.7
28+
- contextvars # python_version < 3.7
29+
- mkl-service
30+
- dill
31+
- libblas=*=*mkl

conda-envs/environment-dev-py37.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: pymc3-dev-py37
2+
channels:
3+
- conda-forge
4+
- defaults
5+
dependencies:
6+
- python=3.7
7+
- arviz>=0.9
8+
- theano-pymc==1.0.11
9+
- numpy>=1.13
10+
- scipy>=0.18
11+
- pandas>=0.18
12+
- patsy>=0.5
13+
- fastprogress>=0.2
14+
- h5py>=2.7
15+
- typing-extensions>=3.7
16+
- python-graphviz
17+
- ipython>=7.16
18+
- nbsphinx>=0.4
19+
- numpydoc>=0.9
20+
- pre-commit>=2.8.0
21+
- pytest-cov>=2.5
22+
- pytest>=3.0
23+
- recommonmark>=0.4
24+
- sphinx-autobuild>=0.7
25+
- sphinx>=1.5
26+
- watermark
27+
- mkl-service
28+
- dill
29+
- libblas=*=*mkl

conda-envs/environment-dev-py38.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: pymc3-dev-py38
2+
channels:
3+
- conda-forge
4+
- defaults
5+
dependencies:
6+
- python=3.8
7+
- arviz>=0.9
8+
- theano-pymc==1.0.11
9+
- numpy>=1.13
10+
- scipy>=0.18
11+
- pandas>=0.18
12+
- patsy>=0.5
13+
- fastprogress>=0.2
14+
- h5py>=2.7
15+
- typing-extensions>=3.7
16+
- python-graphviz
17+
- ipython>=7.16
18+
- nbsphinx>=0.4
19+
- numpydoc>=0.9
20+
- pre-commit>=2.8.0
21+
- pytest-cov>=2.5
22+
- pytest>=3.0
23+
- recommonmark>=0.4
24+
- sphinx-autobuild>=0.7
25+
- sphinx>=1.5
26+
- watermark
27+
- mkl-service
28+
- dill
29+
- libblas=*=*mkl

0 commit comments

Comments
 (0)