Skip to content

Commit 437f386

Browse files
authored
Merge pull request #153 from python-adaptive/ci_improvements
invoke conda directly in CI
2 parents 0e1aa7c + 5b64b6f commit 437f386

File tree

3 files changed

+15
-22
lines changed

3 files changed

+15
-22
lines changed

adaptive/tests/test_runner.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ def test_ipyparallel_executor(ipyparallel_executor):
101101
assert learner.npoints > 0
102102

103103

104+
@pytest.mark.timeout(60)
104105
@pytest.mark.skipif(not with_distributed, reason='dask.distributed is not installed')
105106
def test_distributed_executor(dask_executor):
106107
learner = Learner1D(linear, (-1, 1))

azure-pipelines.yml

Lines changed: 11 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,18 @@
11
steps:
2-
- task: CondaEnvironment@1
3-
inputs:
4-
packageSpecs: >
5-
python=3.6
6-
sortedcontainers
7-
sortedcollections
8-
scipy
9-
holoviews
10-
ipyparallel
11-
distributed
12-
ipykernel>=4.8*
13-
jupyter_client>=5.2.2
14-
ipywidgets
15-
scikit-optimize
16-
plotly
17-
createCustomEnvironment: true
18-
createOptions: "-c conda-forge"
19-
environmentName: 'adaptive'
2+
- bash: echo "##vso[task.prependpath]/usr/share/miniconda/bin"
3+
displayName: Add conda to PATH
204

21-
- script: pip install -r test-requirements.txt
5+
- script: conda env create --quiet --file environment.yml
6+
displayName: Create Anaconda environment
7+
8+
- script: |
9+
source activate adaptive
10+
pip install -r test-requirements.txt
2211
displayName: 'Install test-requirements.txt'
2312

24-
- script: py.test --verbose --cov=adaptive --cov-report term --cov-report html adaptive
13+
- script: |
14+
source activate adaptive
15+
py.test --verbose --cov=adaptive --cov-report term --cov-report html adaptive
2516
displayName: 'Run the tests'
2617

2718
- script: |

test-requirements.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1+
pexpect
12
pytest
2-
pytest-randomly
33
pytest-cov
4-
pexpect
4+
pytest-randomly
5+
pytest-timeout

0 commit comments

Comments
 (0)