From e9ca04af0d0a449bc197f66439760ff42bea0a74 Mon Sep 17 00:00:00 2001 From: Debanjum Singh Solanky Date: Thu, 23 Mar 2023 01:46:26 +0400 Subject: [PATCH] Require dash, org to run ERT tests for khoj.el --- .github/workflows/test_khoj_el.yml | 5 ++++- src/interface/emacs/tests/khoj-tests.el | 4 +++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test_khoj_el.yml b/.github/workflows/test_khoj_el.yml index 6efdc646..6e22261d 100644 --- a/.github/workflows/test_khoj_el.yml +++ b/.github/workflows/test_khoj_el.yml @@ -42,7 +42,10 @@ jobs: (push '(\"melpa\" . \"https://melpa.org/packages/\") package-archives) \ (package-initialize) \ (unless package-archive-contents (package-refresh-contents)) \ - (unless (package-installed-p 'transient) (package-install 'transient)))" \ + (unless (package-installed-p 'transient) (package-install 'transient)) \ + (unless (package-installed-p 'dash) (package-install 'dash)) \ + (unless (package-installed-p 'org) (package-install 'org)) \ + )" \ -l ert \ -l ./src/interface/emacs/khoj.el \ -l ./src/interface/emacs/tests/khoj-tests.el \ diff --git a/src/interface/emacs/tests/khoj-tests.el b/src/interface/emacs/tests/khoj-tests.el index b780153e..577f2c5c 100644 --- a/src/interface/emacs/tests/khoj-tests.el +++ b/src/interface/emacs/tests/khoj-tests.el @@ -4,7 +4,7 @@ ;; Author: Debanjum Singh Solanky ;; Version: 0.0.0 -;; Package-Requires: ((emacs "27.1") (transient "0.3.0")) +;; Package-Requires: ((emacs "27.1") (transient "0.3.0") (dash "2.19.1") (org "9.0.0")) ;; URL: https://github.com/debanjum/khoj/tree/master/src/interface/emacs ;;; License: @@ -28,8 +28,10 @@ ;;; Code: +(require 'dash) (require 'ert) (require 'khoj) +(require 'org)