Merge branch 'master' into develop
All checks were successful
ydeng/splitmsa/pipeline/head This commit looks good

This commit is contained in:
2024-07-21 03:01:39 +00:00
5 changed files with 62 additions and 8 deletions

19
Jenkinsfile vendored
View File

@@ -1,21 +1,26 @@
pipeline {
agent any
agent {
kubernetes {
cloud 'Reslate Systems'
defaultContainer 'conda'
}
}
stages {
stage("install") {
steps {
sh 'mamba env update --file environment.yml --prefix ./env || mamba env create --force --file environment.yml --prefix ./env'
sh 'conda update conda -y -q'
sh 'conda env update -n base --file environment.yml'
}
}
stage("build") {
steps {
sh 'rm -rf ./dist/*'
sh "python -m build"
sh "conda run -n base python -m build"
}
}
stage("test") {
steps {
sh "pip install dist/*.whl"
sh "splitmsa -h"
sh "conda run -n base pip install dist/*.whl"
sh "conda run -n base splitmsa -h"
}
}
stage("archive") {
@@ -29,7 +34,7 @@ pipeline {
}
steps {
withCredentials([usernamePassword(credentialsId: 'rs-git-package-registry-ydeng', passwordVariable: 'PASS', usernameVariable: 'USER')]) {
sh "python -m twine upload --repository-url https://git.reslate.systems/api/packages/${USER}/pypi -u ${USER} -p ${PASS} --non-interactive --disable-progress-bar --verbose dist/*"
sh "conda run -n base python -m twine upload --repository-url https://git.reslate.systems/api/packages/${USER}/pypi -u ${USER} -p ${PASS} --non-interactive --disable-progress-bar --verbose dist/*"
}
}
}