Tidy up and fix gradle
@@ -33,8 +33,8 @@ task writeSnippets(type:Exec) {
commandLine 'python', 'bin/snippet_writer.py'
}
-task preparePython {
- dependsOn(":keanu-python:installPipenv")
+task prepareKeanuPipenv {
+ dependsOn(":keanu-python:build")
doLast {
exec {
workingDir("src/test/python/")
@@ -44,12 +44,14 @@ task preparePython {
}
task runPythonSnippets {
- dependsOn(preparePython)
+ dependsOn(prepareKeanuPipenv)
+ doLast {
exec {
workingDir("src/test/python/")
commandLine 'pipenv', 'run', 'pytest', '.'
}
}
+}
build.finalizedBy(writeSnippets)
test.dependsOn(runPythonSnippets)
\ No newline at end of file
