mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-02 13:18:18 +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'
40 lines
1.1 KiB
YAML
40 lines
1.1 KiB
YAML
# melpa quality checks like checkdoc, byte-compile, package-lint for khoj.el
|
|
# using melpazoid: https://github.com/riscy/melpazoid
|
|
|
|
name: build khoj.el
|
|
on:
|
|
push:
|
|
branches:
|
|
- 'master'
|
|
paths:
|
|
- src/khoj/interface/emacs/*.el
|
|
- .github/workflows/build_khoj_el.yml
|
|
pull_request:
|
|
branches:
|
|
- 'master'
|
|
paths:
|
|
- src/khoj/interface/emacs/*.el
|
|
- .github/workflows/build_khoj_el.yml
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Set up Python 3.9
|
|
uses: actions/setup-python@v1
|
|
with: { python-version: 3.9 }
|
|
- name: Install
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
sudo apt-get install emacs && emacs --version
|
|
git clone https://github.com/riscy/melpazoid.git ~/melpazoid
|
|
pip install ~/melpazoid
|
|
- name: Run
|
|
env:
|
|
# Khoj recipe from https://github.com/melpa/melpa/pull/8321/files
|
|
RECIPE: (khoj :fetcher github :repo "debanjum/khoj" :files ("src/khoj/interface/emacs/*.el"))
|
|
EXIST_OK: true
|
|
LOCAL_REPO: ${{ github.workspace }}
|
|
run: echo $GITHUB_REF && make -C ~/melpazoid
|