Newer
Older
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
jobs:
-
job: 'Python2'
pool:
vmImage: 'ubuntu-latest'
steps:
-
script: |
set -e
sed 's/python=3/python=2.7/' .test-conda-env-py3.yml > .test-conda-env-py2.yml
cat .test-conda-env-py2.yml
CONDA_ENVIRONMENT=.test-conda-env-py2.yml
curl -L -O -k https://gitlab.tiker.net/inducer/ci-support/raw/master/build-and-test-py-project-within-miniconda.sh
. ./build-and-test-py-project-within-miniconda.sh
displayName: 'Pytest Conda'
-
task: PublishTestResults@2
inputs:
testResultsFormat: 'JUnit'
testResultsFiles: 'test/pytest.xml'
-
job: 'Python3'
pool:
vmImage: 'ubuntu-latest'
steps:
-
script: |
set -e
CONDA_ENVIRONMENT=.test-conda-env-py3.yml
curl -L -O -k https://gitlab.tiker.net/inducer/ci-support/raw/master/build-and-test-py-project-within-miniconda.sh
. ./build-and-test-py-project-within-miniconda.sh
displayName: 'Pytest Conda'
-
task: PublishTestResults@2
inputs:
testResultsFormat: 'JUnit'
testResultsFiles: 'test/pytest.xml'
-
job: 'Flake8'
pool:
vmImage: 'ubuntu-latest'
strategy:
matrix:
Python37:
python.version: '3.7'
steps:
-
task: UsePythonVersion@0
inputs:
versionSpec: '$(python.version)'
-
script: |
set -e
curl -L -O -k https://gitlab.tiker.net/inducer/ci-support/raw/master/prepare-and-run-flake8.sh
. ./prepare-and-run-flake8.sh pytential test
displayName: 'Flake8'
-
job: 'Pylint'
pool:
vmImage: 'ubuntu-latest'
steps:
-
script: |
set -e
CONDA_ENVIRONMENT=.test-conda-env-py3-pylint.yml
sed 's/numpy/numpy=1.15/' .test-conda-env-py3.yml > $CONDA_ENVIRONMENT
echo "- matplotlib" >> $CONDA_ENVIRONMENT
echo "-------------------------------------------"
cat $CONDA_ENVIRONMENT
echo "-------------------------------------------"
USE_CONDA_BUILD=1
curl -L -O -k https://gitlab.tiker.net/inducer/ci-support/raw/master/prepare-and-run-pylint.sh
. ./prepare-and-run-pylint.sh pytential test/test_*.py
displayName: 'Pylint'