tox-dev / azure-pipelines-template

template for your azure pipelines
24 stars 16 forks source link

Complex generated matrix #11

Closed ahgraber closed 3 years ago

ahgraber commented 3 years ago

I have a tox testing plan that generates a complex matrix of environments to build against. Is it possible to run these with tox-azure?

Here's a trimmed down version of my tox.ini

envlist =
    py{37,38}-np{18}-pd{0,2}-sci{14,16},  # test conflict btwn numpy, scipy, and c extensions
    py{37,38}-np{19,20}-pd{0,2}-sci{15,16},
    py39,  # latest version of python, assumes 'latest' for dependencies
ignore_basepython_conflict = true
# isolated_build = true

[testenv]
basepython =
    py37: {env:TOXPYTHON:python3.7}
    py38: {env:TOXPYTHON:python3.8}
    py39: {env:TOXPYTHON:python3.9}
deps =
    pytest
    pytest-cov
    Cython
    np18: numpy>=1.18,<1.19
    np19: numpy>=1.19,<1.20
    np20: numpy>=1.20,<1.21
    pd0: pandas>=1.0,<1.1
    pd2: pandas>=1.2,<1.3
    sci14: scipy>=1.4,<1.5
    sci15: scipy>=1.5,<1.6
    sci16: scipy>=1.6,<1.7
    py39: numpy
    py39: pandas
    py39: scipy
usedevelop = true
passenv = *
commands =
    python setup.py clean --all build_ext --force --inplace
    {posargs:pytest --cov --cov-report=term-missing -vv}