mirror of
https://github.com/khoj-ai/khoj.git
synced 2025-02-17 08:04:21 +00:00
- Why The khoj pypi packages should be installed in `khoj' directory. Previously it was being installed into `src' directory, which is a generic top level directory name that is discouraged from being used - Changes - move src/* to src/khoj/* - update `setup.py' to `find_packages' in `src' instead of project root - rename imports to form `from khoj.*' in complete project - update `constants.web_directory' path to use `khoj' directory - rename root logger to `khoj' in `main.py' - fix image_search tests to use the newly rename `khoj' logger - update config, docs, workflows to reference new path `src/khoj'
49 lines
1.4 KiB
YAML
49 lines
1.4 KiB
YAML
name: test khoj.el
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- 'master'
|
|
paths:
|
|
- src/khoj/interface/emacs/*.el
|
|
- src/khoj/interface/emacs/tests/*.el
|
|
- .github/workflows/test_khoj_el.yml
|
|
pull_request:
|
|
branches:
|
|
- 'master'
|
|
paths:
|
|
- src/khoj/interface/emacs/*.el
|
|
- src/khoj/interface/emacs/tests/*.el
|
|
- .github/workflows/test_khoj_el.yml
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
emacs_version:
|
|
- 27.1
|
|
- 27.2
|
|
- 28.1
|
|
- 28.2
|
|
- snapshot
|
|
steps:
|
|
- uses: purcell/setup-emacs@master
|
|
with:
|
|
version: ${{ matrix.emacs_version }}
|
|
- uses: actions/checkout@v3
|
|
- name: Test Khoj.el
|
|
run: |
|
|
# Run ERT tests on khoj.el
|
|
emacs -batch \
|
|
--eval "(progn \
|
|
(require 'package) \
|
|
(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)))" \
|
|
-l ert \
|
|
-l ./src/khoj/interface/emacs/khoj.el \
|
|
-l ./src/khoj/interface/emacs/tests/khoj-tests.el \
|
|
-f ert-run-tests-batch-and-exit
|