Skip to content

Commit f842980

Browse files
Added the dependencies
1 parent 4b65bfe commit f842980

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

azure/azure-build-pipeline.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,28 @@ trigger:
77
tags:
88
include:
99
- v*
10+
trigger:
11+
- main
12+
13+
pool:
14+
vmImage: 'ubuntu-latest'
15+
16+
steps:
17+
- task: UsePythonVersion@0
18+
inputs:
19+
versionSpec: '3.x'
20+
addToPath: true
21+
22+
- script: |
23+
pip install poetry
24+
poetry install
25+
poetry add --dev flake8
26+
displayName: 'Install Poetry and flake8'
27+
28+
- script: |
29+
find . -name '*.py' -not -path '**/.venv/*' -not -path '**/.direnv/*' | xargs poetry run flake8
30+
displayName: 'Run flake8 linting'
31+
1032

1133
pr:
1234
branches:

0 commit comments

Comments
 (0)