Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test pipeline with pylint working #52

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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