Bump release pymc3 #4457
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: arviz-compatibility | |
on: | |
pull_request: | |
push: | |
branches: [v3] | |
jobs: | |
pytest: | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest] | |
floatx: [float64] | |
test-subset: | |
- pymc3/tests/test_distributions.py | |
- pymc3/tests/test_distributions_random.py | |
- pymc3/tests/test_sampling.py | |
fail-fast: false | |
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-py39.yml has not changed | |
CACHE_NUMBER: 0 | |
with: | |
path: ~/conda_pkgs_dir | |
key: ${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-${{ | |
hashFiles('conda-envs/environment-dev-py39.yml') }} | |
- name: Cache multiple paths | |
uses: actions/cache@v2 | |
env: | |
# Increase this value to reset cache if requirements.txt has not changed | |
CACHE_NUMBER: 0 | |
with: | |
path: | | |
~/.cache/pip | |
$RUNNER_TOOL_CACHE/Python/* | |
~\AppData\Local\pip\Cache | |
key: ${{ runner.os }}-build-${{ matrix.python-version }}-${{ | |
hashFiles('requirements.txt') }} | |
- uses: conda-incubator/setup-miniconda@v2 | |
with: | |
activate-environment: pymc3-dev-py39 | |
channel-priority: strict | |
environment-file: conda-envs/environment-dev-py39.yml | |
use-only-tar-bz2: true # IMPORTANT: This needs to be set for caching to work properly! | |
- name: Install pymc3 | |
run: | | |
conda activate pymc3-dev-py39 | |
pip install -e . | |
python --version | |
- name: Install latest arviz | |
run: | | |
conda activate pymc3-dev-py39 | |
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 |