Skip to content

Commit

Permalink
WIP jenkinsfile
Browse files Browse the repository at this point in the history
  • Loading branch information
keotl committed May 31, 2023
1 parent a49e39f commit 78142ba
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
pipeline {
agent none
stages {
matrix {
agent {
kubernetes {
defaultContainer 'python'
yaml """
apiVersion: v1
kind: Pod
metadata:
name: python
spec:
containers:
- name: python
image: python:${PYTHON_VERSION}
"""
}
}
axes {
axis {
name 'PYTHON_VERSION'
values '3.10', '3.9', '3.8', '3.7', '3.6'
}
}
stage('Install dependencies') {
steps {
checkout scm
sh 'pip install -r requirements.txt'
}
}
stage('Test') {
steps {
sh 'sh run_tests.sh'
sh 'sh run_e2e_tests.sh'
}
}
}
}
}

0 comments on commit 78142ba

Please sign in to comment.