File tree Expand file tree Collapse file tree 1 file changed +45
-0
lines changed Expand file tree Collapse file tree 1 file changed +45
-0
lines changed Original file line number Diff line number Diff line change 1+ name : arviz-compatibility
2+
3+ on :
4+ pull_request :
5+ push :
6+ branches : [master]
7+
8+ jobs :
9+ pytest :
10+ strategy :
11+ matrix :
12+ python-version : ["3.8"]
13+ os : [ubuntu-18.04]
14+ floatx : [float64]
15+ test-subset :
16+ - pymc3/tests/test_sampling.py
17+ runs-on : ${{ matrix.os }}
18+ env :
19+ TEST_SUBSET : ${{ matrix.test-subset }}
20+ THEANO_FLAGS : floatX=${{ matrix.floatx }},gcc.cxxflags='-march=native'
21+ defaults :
22+ run :
23+ shell : bash -l {0}
24+ steps :
25+ - uses : actions/checkout@v2
26+ - name : Cache conda
27+ uses : actions/cache@v1
28+ env :
29+ # Increase this value to reset cache if environment-dev.yml has not changed
30+ CACHE_NUMBER : 0
31+ with :
32+ path : ~/conda_pkgs_dir
33+ key : ${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-${{
34+ hashFiles('environment-dev.yml') }}
35+ - uses : conda-incubator/setup-miniconda@v2
36+ with :
37+ activate-environment : testenv
38+ channel-priority : strict
39+ environment-file : environment-dev.yml
40+ use-only-tar-bz2 : true # IMPORTANT: This needs to be set for caching to work properly!
41+ - run : |
42+ conda activate testenv
43+ conda remove arviz -y
44+ pip install git+git://github.com/arviz-devs/arviz.git
45+ python -m pytest -v --cov=pymc3 --cov-report=xml --cov-report term --durations=50 $TEST_SUBSET -n auto
You can’t perform that action at this time.
0 commit comments