Skip to content

Commit 685b0e3

Browse files
committed
🔥 remove pin theano checks, just use requirements.txt
1 parent bf58096 commit 685b0e3

File tree

9 files changed

+36
-78
lines changed

9 files changed

+36
-78
lines changed

.github/workflows/arviz_compat.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,18 @@ jobs:
3333
path: ~/conda_pkgs_dir
3434
key: ${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-${{
3535
hashFiles('conda-envs/environment-dev-py38.yml') }}
36+
- name: Cache multiple paths
37+
uses: actions/cache@v2
38+
env:
39+
# Increase this value to reset cache if requirements.txt has not changed
40+
CACHE_NUMBER: 0
41+
with:
42+
path: |
43+
~/.cache/pip
44+
$RUNNER_TOOL_CACHE/Python/*
45+
~\AppData\Local\pip\Cache
46+
key: ${{ runner.os }}-build-${{ matrix.python-version }}-${{
47+
hashFiles('requirements.txt') }}
3648
- uses: conda-incubator/setup-miniconda@v2
3749
with:
3850
activate-environment: pymc3-dev-py38

.github/workflows/pytest.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,18 @@ jobs:
7474
path: ~/conda_pkgs_dir
7575
key: ${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-${{
7676
hashFiles('conda-envs/environment-dev-py36.yml') }}
77+
- name: Cache multiple paths
78+
uses: actions/cache@v2
79+
env:
80+
# Increase this value to reset cache if requirements.txt has not changed
81+
CACHE_NUMBER: 0
82+
with:
83+
path: |
84+
~/.cache/pip
85+
$RUNNER_TOOL_CACHE/Python/*
86+
~\AppData\Local\pip\Cache
87+
key: ${{ runner.os }}-build-${{ matrix.python-version }}-${{
88+
hashFiles('requirements.txt') }}
7789
- uses: conda-incubator/setup-miniconda@v2
7890
with:
7991
activate-environment: pymc3-dev-py36

.github/workflows/windows.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,18 @@ jobs:
3232
path: ~/conda_pkgs_dir
3333
key: ${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-${{
3434
hashFiles('conda-envs/environment-dev-py37.yml') }}
35+
- name: Cache multiple paths
36+
uses: actions/cache@v2
37+
env:
38+
# Increase this value to reset cache if requirements.txt has not changed
39+
CACHE_NUMBER: 0
40+
with:
41+
path: |
42+
~/.cache/pip
43+
$RUNNER_TOOL_CACHE/Python/*
44+
~\AppData\Local\pip\Cache
45+
key: ${{ runner.os }}-build-${{ matrix.python-version }}-${{
46+
hashFiles('requirements.txt') }}
3547
- uses: conda-incubator/setup-miniconda@v2
3648
with:
3749
activate-environment: pymc3-dev-py37

.pre-commit-config.yaml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -69,13 +69,6 @@ repos:
6969
language: python
7070
name: Sort dependencies in conda envs
7171
types: [yaml]
72-
- id: pin-theano-pymc
73-
additional_dependencies: [pyyaml]
74-
entry: python scripts/pin_theano.py
75-
files: ^conda-envs/
76-
language: python
77-
name: Check theano-pymc versions match the one in requirements.txt
78-
types: [yaml]
7972
- id: pip-to-conda
8073
additional_dependencies: [pyyaml]
8174
entry: python scripts/generate_pip_deps_from_conda.py

conda-envs/environment-dev-py36.yml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,29 +3,20 @@ channels:
33
- conda-forge
44
- defaults
55
dependencies:
6-
- arviz>=0.9
76
- contextvars
87
- dataclasses
9-
- dill
10-
- fastprogress>=0.2
118
- h5py>=2.7
129
- ipython>=7.16
1310
- libblas=*=*mkl
1411
- mkl-service
1512
- nbsphinx>=0.4
16-
- numpy>=1.13
1713
- numpydoc>=0.9
18-
- pandas>=0.18
19-
- patsy>=0.5
2014
- pre-commit>=2.8.0
2115
- pytest-cov>=2.5
2216
- pytest>=3.0
2317
- python-graphviz
2418
- python=3.6
2519
- recommonmark>=0.4
26-
- scipy>=0.18
2720
- sphinx-autobuild>=0.7
2821
- sphinx>=1.5
29-
- theano-pymc=1.0.12
30-
- typing-extensions>=3.7
3122
- watermark

conda-envs/environment-dev-py37.yml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,27 +3,18 @@ channels:
33
- conda-forge
44
- defaults
55
dependencies:
6-
- arviz>=0.9
7-
- dill
8-
- fastprogress>=0.2
96
- h5py>=2.7
107
- ipython>=7.16
118
- libblas=*=*mkl
129
- mkl-service
1310
- nbsphinx>=0.4
14-
- numpy>=1.13
1511
- numpydoc>=0.9
16-
- pandas>=0.18
17-
- patsy>=0.5
1812
- pre-commit>=2.8.0
1913
- pytest-cov>=2.5
2014
- pytest>=3.0
2115
- python-graphviz
2216
- python=3.7
2317
- recommonmark>=0.4
24-
- scipy>=0.18
2518
- sphinx-autobuild>=0.7
2619
- sphinx>=1.5
27-
- theano-pymc=1.0.12
28-
- typing-extensions>=3.7
2920
- watermark

conda-envs/environment-dev-py38.yml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,27 +3,18 @@ channels:
33
- conda-forge
44
- defaults
55
dependencies:
6-
- arviz>=0.9
7-
- dill
8-
- fastprogress>=0.2
96
- h5py>=2.7
107
- ipython>=7.16
118
- libblas=*=*mkl
129
- mkl-service
1310
- nbsphinx>=0.4
14-
- numpy>=1.13
1511
- numpydoc>=0.9
16-
- pandas>=0.18
17-
- patsy>=0.5
1812
- pre-commit>=2.8.0
1913
- pytest-cov>=2.5
2014
- pytest>=3.0
2115
- python-graphviz
2216
- python=3.8
2317
- recommonmark>=0.4
24-
- scipy>=0.18
2518
- sphinx-autobuild>=0.7
2619
- sphinx>=1.5
27-
- theano-pymc=1.0.12
28-
- typing-extensions>=3.7
2920
- watermark

requirements-dev.txt

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,14 @@
11
# This file is auto-generated from environment-dev-py38.yml, do not modify.
22
# See that file for comments about the need/usage of each dependency.
33

4-
arviz>=0.9
5-
dill
6-
fastprogress>=0.2
74
h5py>=2.7
85
ipython>=7.16
96
nbsphinx>=0.4
10-
numpy>=1.13
117
numpydoc>=0.9
12-
pandas>=0.18
13-
patsy>=0.5
148
pre-commit>=2.8.0
159
pytest-cov>=2.5
1610
pytest>=3.0
1711
recommonmark>=0.4
18-
scipy>=0.18
1912
sphinx-autobuild>=0.7
2013
sphinx>=1.5
21-
theano-pymc==1.0.12
22-
typing-extensions>=3.7
2314
watermark

scripts/pin_theano.py

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

0 commit comments

Comments
 (0)