Skip to content

Commit

Permalink
Fix post
Browse files Browse the repository at this point in the history
  • Loading branch information
pbedn committed Jan 6, 2024
1 parent 5d9b55c commit 8a3d9ce
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion content/post/2024-01-05-azure-ci-scanners.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,21 @@ Example of Azure Pipeline yaml file to configure pytest with code coverage and N
<!--more-->

Additional yaml file features:

* trigger CI on merge to master, or each tag
* pip download folder caching
* freeze requirements and add marker for selected platform as recommended in Nexux docs
* publish test result
* publish code coverage report using Cobertura tool

Notes:

* overall time save is neglible compared to regular *pip install* for small requirements file
* azure pipeline file grows quickly, so if using similar in multiple repositories it is worth to implement pipeline templates
* Sonar and Nexus are configured to run only on merge to master

Azure Devops configuration for SonarQube and Sonata Nexus:

* [Link to docs: Azure - SonarQube](https://docs.sonarsource.com/sonarqube/latest/devops-platform-integration/azure-devops-integration/)
* [Link to docs: Azure - Nexus IQ](https://help.sonatype.com/iqserver/integrations/plugins-for-continuous-integration-platforms/nexus-iq-for-azure-devops)

Expand Down Expand Up @@ -57,7 +60,7 @@ resources:
name: <put-here-name-of-repository>
variables:
pythonVersion: '3.11
pythonVersion: '3.11'
pipDownloadDir: $(Pipeline.Workspace)/.pip
jobs:
Expand Down

0 comments on commit 8a3d9ce

Please sign in to comment.