ci: add gn2-auth-flow-tests Laminar job
HEAD mainAdds an after hook to gn2-smoke-tests that queues gn2-auth-flow-tests
on success, matching the pattern used for gn3-auth-flow-tests.
The new gn2-auth-flow-tests job:
- runs pytest -m "gn2 and auth_flow"
- uses the standard setup/teardown lifecycle (provisioned test users
and OAuth2 client, same as gn-auth and gn3 auth-flow jobs)
Co-Authored-By: Frederick Muriuki Muriithi <fmuriit1@uthsc.edu>
1 files changed, 14 insertions, 0 deletions
diff --git a/genenetwork-development.scm b/genenetwork-development.scm
index 2904252..ec6eda0 100644
--- a/genenetwork-development.scm
+++ b/genenetwork-development.scm
@@ -379,6 +379,20 @@ genenetwork3 source from the latest commit of @var{project}."
(run (gn-integration-tests-gexp
config
(list "pytest" "-m" "gn2 and smoke" "-v")))
+ (trigger? #f)
+ (after (with-imported-modules '((guix build utils))
+ #~(begin
+ (use-modules (guix build utils))
+ (when (string=? (getenv "RESULT") "success")
+ (invoke #$(file-append laminar "/bin/laminarc")
+ "queue" "gn2-auth-flow-tests"))))))
+ (forge-laminar-job
+ (name "gn2-auth-flow-tests")
+ (run (gn-integration-tests-gexp
+ config
+ (list "pytest" "-m" "gn2 and auth_flow" "-v")
+ #:setup (list (setup-gn-auth-credentials-gexp))
+ #:teardown (list (teardown-gn-auth-credentials-gexp))))
(trigger? #f))))
(ci-jobs-trigger 'webhook))
(forge-project
|