Skip to content

Commit

Permalink
Test pipeline with pylint working
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathan-innis committed Jun 11, 2021
1 parent b9b932a commit c5effb2
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions k8s-custom-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,8 @@ stages:
- stage: AzureCLIOfficial
displayName: "Azure Official CLI Code Checks"
dependsOn: []
variables:
EXTENSION_NAME: "k8s-extension"
jobs:
- job: CheckLicenseHeader
displayName: "Check License"
Expand Down Expand Up @@ -267,6 +269,34 @@ stages:
- bash: python scripts/ci/source_code_static_analysis.py
displayName: "Static Analysis"

- job: Pylinting
displayName: "Running linting on extension"
pool:
vmImage: 'ubuntu-latest'
steps:
- task: UsePythonVersion@0
displayName: 'Use Python 3.9'
inputs:
versionSpec: 3.9
- bash: |
set -ev
# prepare and activate virtualenv
python -m venv env/
chmod +x ./env/bin/activate
source ./env/bin/activate
pip install --upgrade pip
pip install -q azdev
azdev setup -r ./ -e $(EXTENSION_NAME)
azdev --version
az --version
azdev style $(EXTENSION_NAME)
- job: IndexVerify
displayName: "Verify Extensions Index"
pool:
Expand Down

0 comments on commit c5effb2

Please sign in to comment.