@@ -1 +1,2 @@
tests/
+tests/__pycache__/
@@ -12,8 +12,7 @@ pipeline {
stage('Test') {
steps {
echo 'Testing...'
- sh 'poetry run tox'
- sh 'find . | grep -E "(__pycache__|\.pyc|\.pyo$)" | xargs rm -rf'
+ sh 'PYTHONDONTWRITEBYTECODE=1 python3.7 -m poetry run tox'
}
stage('Deploy') {