blob: 8c03490e4073ba321693cc61efacde261693a915 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
pipeline {
triggers {
cron('H */12 * * *')
pollSCM('H */6 * * *')
}
options {
skipDefaultCheckout()
}
environment {
VENV = "${env.WORKSPACE}/generalresearch-venv"
}
stages {
stage('python versions') {
matrix {
axes {
axis {
name 'PYTHON_VERSION'
values 'python3.14', 'python3.13', 'python3.12', 'python3.11'
}
}
stages {
stage('Setup') {
agent { label 'any' }
steps {
cleanWs()
dir("generalresearch/$PYTHON_VERSION/") {
checkout scmGit(
branches: [[name: env.BRANCH_NAME]],
extensions: [ cloneOption(shallow: true) ],
userRemoteConfigs: [
[credentialsId: 'abdeb570-b708-44f3-b857-8a6b06ed9822',
url: 'ssh://code.g-r-l.com:6611/generalresearch']
],
)
sh "/usr/local/bin/$PYTHON_VERSION -m venv $VENV-$PYTHON_VERSION"
sh "$VENV-$PYTHON_VERSION/bin/pip install -U setuptools wheel pip"
sh "$VENV-$PYTHON_VERSION/bin/pip install -r requirements.txt"
sh "$VENV-$PYTHON_VERSION/bin/pip install '.[django]'"
}
}
}
stage('base') {
steps {
dir("generalresearch/$PYTHON_VERSION/") {
sh "$VENV-$PYTHON_VERSION/bin/pytest tests/models/gr/test_base.py -vs"
}
}
}
}
}
}
}
post {
always {
echo 'One way or another, I have finished'
deleteDir() /* clean up our workspace */
}
}
}
|