forked from pymc-devs/pymc
-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (50 loc) · 1.54 KB
/
Copy patharviz_compat.yml
File metadata and controls
52 lines (50 loc) · 1.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: arviz-compatibility
on:
pull_request:
push:
branches: [master]
jobs:
pytest:
strategy:
matrix:
python-version: ["3.8"]
os: [ubuntu-18.04]
floatx: [float64]
test-subset:
- pymc3/tests/test_sampling.py
runs-on: ${{ matrix.os }}
env:
TEST_SUBSET: ${{ matrix.test-subset }}
THEANO_FLAGS: floatX=${{ matrix.floatx }},gcc.cxxflags='-march=native'
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v2
- name: Cache conda
uses: actions/cache@v1
env:
# Increase this value to reset cache if environment-dev.yml has not changed
CACHE_NUMBER: 0
with:
path: ~/conda_pkgs_dir
key: ${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-${{
hashFiles('environment-dev.yml') }}
- uses: conda-incubator/setup-miniconda@v2
with:
activate-environment: testenv
channel-priority: strict
environment-file: environment-dev.yml
use-only-tar-bz2: true # IMPORTANT: This needs to be set for caching to work properly!
- name: Install pymc3
run: |
conda activate testenv
pip install -e .
- name: Install latest arviz
run: |
conda activate testenv
pip uninstall arviz -y
pip install git+git://github.com/arviz-devs/arviz.git
- name: Run tests
run: |
python -m pytest -vv --cov=pymc3 --cov-report=xml --cov-report term --durations=50 $TEST_SUBSET