2021-11-04 10:04:19 +00:00
|
|
|
pipeline {
|
|
|
|
agent none
|
|
|
|
stages {
|
2021-11-04 10:17:33 +00:00
|
|
|
stage('CPU') {
|
|
|
|
parallel {
|
2021-11-04 15:36:45 +00:00
|
|
|
stage('3.10') {
|
2021-11-04 14:41:38 +00:00
|
|
|
agent {
|
|
|
|
dockerfile {
|
|
|
|
filename 'python310.Dockerfile'
|
|
|
|
dir '.ci'
|
|
|
|
}
|
2021-11-04 15:36:45 +00:00
|
|
|
|
2021-11-04 14:41:38 +00:00
|
|
|
}
|
|
|
|
steps {
|
|
|
|
sh 'pip install pip --upgrade --progress-bar off'
|
|
|
|
sh 'pip install .[all] --progress-bar off'
|
|
|
|
sh './tests/test_examples.sh examples'
|
|
|
|
}
|
|
|
|
}
|
2021-11-04 15:36:45 +00:00
|
|
|
|
|
|
|
stage('3.9') {
|
2021-11-04 10:17:33 +00:00
|
|
|
agent {
|
2021-11-04 10:58:21 +00:00
|
|
|
dockerfile {
|
|
|
|
filename 'python39.Dockerfile'
|
|
|
|
dir '.ci'
|
2021-11-04 10:17:33 +00:00
|
|
|
}
|
2021-11-04 15:36:45 +00:00
|
|
|
|
2021-11-04 10:17:33 +00:00
|
|
|
}
|
|
|
|
steps {
|
|
|
|
sh 'pip install pip --upgrade --progress-bar off'
|
|
|
|
sh 'pip install .[all] --progress-bar off'
|
|
|
|
sh './tests/test_examples.sh examples'
|
|
|
|
}
|
|
|
|
}
|
2021-11-04 15:36:45 +00:00
|
|
|
|
|
|
|
stage('3.8') {
|
2021-11-04 10:17:33 +00:00
|
|
|
agent {
|
2021-11-04 10:58:21 +00:00
|
|
|
dockerfile {
|
|
|
|
filename 'python38.Dockerfile'
|
|
|
|
dir '.ci'
|
2021-11-04 10:17:33 +00:00
|
|
|
}
|
2021-11-04 15:36:45 +00:00
|
|
|
|
2021-11-04 10:17:33 +00:00
|
|
|
}
|
|
|
|
steps {
|
|
|
|
sh 'pip install pip --upgrade --progress-bar off'
|
|
|
|
sh 'pip install .[all] --progress-bar off'
|
|
|
|
sh './tests/test_examples.sh examples'
|
|
|
|
}
|
2021-11-04 10:04:19 +00:00
|
|
|
}
|
2021-11-04 15:36:45 +00:00
|
|
|
|
|
|
|
stage('3.7') {
|
2021-11-04 13:06:47 +00:00
|
|
|
agent {
|
|
|
|
dockerfile {
|
|
|
|
filename 'python37.Dockerfile'
|
|
|
|
dir '.ci'
|
|
|
|
}
|
2021-11-04 15:36:45 +00:00
|
|
|
|
2021-11-04 13:06:47 +00:00
|
|
|
}
|
|
|
|
steps {
|
|
|
|
sh 'pip install pip --upgrade --progress-bar off'
|
|
|
|
sh 'pip install .[all] --progress-bar off'
|
|
|
|
sh './tests/test_examples.sh examples'
|
|
|
|
}
|
|
|
|
}
|
2021-11-04 15:36:45 +00:00
|
|
|
|
|
|
|
stage('3.6') {
|
2021-11-04 13:06:47 +00:00
|
|
|
agent {
|
|
|
|
dockerfile {
|
|
|
|
filename 'python36.Dockerfile'
|
|
|
|
dir '.ci'
|
|
|
|
}
|
2021-11-04 15:36:45 +00:00
|
|
|
|
2021-11-04 13:06:47 +00:00
|
|
|
}
|
|
|
|
steps {
|
|
|
|
sh 'pip install pip --upgrade --progress-bar off'
|
|
|
|
sh 'pip install .[all] --progress-bar off'
|
|
|
|
sh './tests/test_examples.sh examples'
|
|
|
|
}
|
|
|
|
}
|
2021-11-04 15:36:45 +00:00
|
|
|
|
2021-11-04 10:04:19 +00:00
|
|
|
}
|
|
|
|
}
|
2021-11-04 15:36:45 +00:00
|
|
|
|
|
|
|
stage('GPU') {
|
|
|
|
agent {
|
|
|
|
docker {
|
|
|
|
image 'nvcr.io/nvidia/pytorch:21.10-py3'
|
|
|
|
args '--gpus 1'
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
steps {
|
|
|
|
sh 'pip install -U pip --progress-bar off'
|
|
|
|
sh 'pip install .[all] --progress-bar off'
|
|
|
|
sh './tests/test_examples.sh examples --gpu'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-11-04 10:04:19 +00:00
|
|
|
}
|
2021-11-04 15:36:45 +00:00
|
|
|
}
|