Advertisement
PandaAcademy

Unit tests pipeline

Oct 6th, 2023 (edited)
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. pipeline {
  2. agent {
  3. label 'agent'
  4. }
  5.  
  6. environment {
  7. PIP_BREAK_SYSTEM_PACKAGES = 1
  8. }
  9.  
  10. stages {
  11. stage('Get Code') {
  12. steps {
  13. git branch: 'main', url: 'https://github.com/Panda-Academy-Core-2-0/Frontend'
  14. }
  15. }
  16.  
  17. stage('Unit tests') {
  18. steps {
  19. sh "pip3 install -r requirements.txt"
  20. sh "python3 -m pytest --cov=. --cov-report xml:test-results/coverage.xml --junitxml=test-results/pytest-report.xml"
  21. }
  22. }
  23. }
  24. }
  25.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement