-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
46 lines (42 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
42
43
44
45
46
name: $(Date:yyyyMMdd).$(Rev:r)-$(Build.SourceBranchName)
pr:
branches:
include:
- master
trigger:
branches:
include:
- master
variables:
vmImageName: 'ubuntu-latest'
stages:
- stage: PRTest
displayName: CI
pool:
vmImage: $(vmImageName)
jobs:
- job: Tests
displayName: Lint and Tests
steps:
- task: UsePythonVersion@0
displayName: 'Use Python 3.11'
inputs:
versionSpec: '3.11'
- script: make sys-deps
displayName: Install sys deps
- task: Cache@2
inputs:
path: .tox
key: 'v2 | tox | poetry.lock'
restoreKeys: |
v2 | tox
- script: tox -e install
displayName: Install project deps
- script: tox -e lint
displayName: Lint
- script: tox -e tests
displayName: Run tests
- script: ls -al
- script: coverage xml
- script: bash <(curl -s https://codecov.io/bash)
displayName: Coverage Reporting