diff --git a/azure-pipelines.yml b/azure-pipelines.yml index cfb8db1..e888aa2 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -44,8 +44,8 @@ jobs: - macos: py36 name: py36_test - - windows: py37 - name: py37_test + - windows: conda + name: win_conda - linux: py37 name: py37_test @@ -63,6 +63,8 @@ jobs: # Only Upload to PyPI on tags ${{ if startsWith(variables['Build.SourceBranch'], 'refs/tags/') }}: pypi_connection_name : 'PyPI' + libraries: + - libfftw3-dev test_extras: 'test' test_command: 'pytest -p no:warnings --doctest-rst -m "not figure" --pyargs pyflct' submodules: false diff --git a/tox.ini b/tox.ini index 3600f49..463d106 100644 --- a/tox.ini +++ b/tox.ini @@ -3,6 +3,7 @@ envlist = py{36,37,38} build_docs codestyle + conda isolated_build = true requires = setuptools >= 30.3.0 @@ -52,3 +53,20 @@ deps = commands = pre-commit install pre-commit run --all-files + +# This env requires tox-conda. +[testenv:conda] +description = Use anaconda to test the package. +pypi_filter = +basepython = python3.8 +extras = +deps = + cython + numpy + pytest-cov + pytest-astropy +conda_deps = + fftw +conda_channels = conda-forge +commands = + pytest --pyargs pyflct {toxinidir}/docs --cov pyflct --cov-config={toxinidir}/setup.cfg {posargs}