forked from python-discord/code-jam-4
-
Notifications
You must be signed in to change notification settings - Fork 1
/
azure-pipelines.yml
41 lines (32 loc) · 1.09 KB
/
azure-pipelines.yml
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
# This is the linting configuration for Azure Pipelines
# You should not need to change this unelss you have an
# application which is incompatible with the version of
# Python we are using, in which case your config should
# be changed to use another version (see comment below)
#
# You may also have to change the Python version inside
# the Pipfile (set python_version to different version)
jobs:
- job: lint
displayName: "Lint"
pool:
vmImage: 'Ubuntu 16.04'
variables:
PIPENV_CACHE_DIR: ".cache/pipenv"
PIP_CACHE_DIR: ".cache/pip"
steps:
- task: UsePythonVersion@0
displayName: 'Set Python version'
inputs:
versionSpec: '3.7.x' # If your application does not support 3.7, change this
addToPath: true
- script: sudo pip3 install setuptools
displayName: 'Install base dependencies'
- script: sudo pip3 install pipenv
displayName: 'Install Pipenv'
- script: pipenv install --dev
displayName: 'Install project dependencies'
- script: pipenv run lint
displayName: 'Lint the project'
- script: pipenv run test
displayName: 'Run unit tests'