branch: externals/llm
commit f2291e463841d4d124ed1ea4888e6ea1b04b94e6
Author: Andrew Hyatt <ahy...@gmail.com>
Commit: Andrew Hyatt <ahy...@gmail.com>

    Add Eldev and new CI file that uses it
---
 .github/workflows/ci.yaml   | 38 ++++++++++++++++++++++
 .github/workflows/melpa.yml | 79 ---------------------------------------------
 Eldev                       |  8 +++++
 3 files changed, 46 insertions(+), 79 deletions(-)

diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml
new file mode 100644
index 0000000000..cf0f4abe7b
--- /dev/null
+++ b/.github/workflows/ci.yaml
@@ -0,0 +1,38 @@
+name: CI
+
+on:
+  # Triggers the workflow on push or pull request events but only for the 
"main" branch
+  push:
+    branches: [ "main" ]
+  pull_request:
+    branches: [ "main" ]
+
+test:
+  runs-on: ubuntu-latest
+  strategy:
+    matrix:
+      emacs_version:
+        # Add more lines like this if you want to test on different Emacs 
versions.
+        - 28.1
+        - 28.2
+        - 29.1
+        - 29.2
+  steps:
+  - name: Set up Emacs
+    uses: jcs090218/setup-emacs@master
+    with:
+      version: ${{matrix.emacs_version}}
+
+  - name: Install Eldev
+    uses: emacs-eldev/setup-eldev@v1
+
+  - name: Check out the source code
+    uses: actions/checkout@v4
+
+  - name: Lint the project
+    run: |
+      eldev -p -dtT lint
+
+  - name: Test the project
+    run: |
+      eldev -p -dtT test
diff --git a/.github/workflows/melpa.yml b/.github/workflows/melpa.yml
deleted file mode 100644
index 529ed4bbb9..0000000000
--- a/.github/workflows/melpa.yml
+++ /dev/null
@@ -1,79 +0,0 @@
-name: CI
-
-# Controls when the workflow will run
-on:
-  # Triggers the workflow on push or pull request events but only for the 
"main" branch
-  push:
-    branches: [ "main" ]
-  pull_request:
-    branches: [ "main" ]
-
-  # Allows you to run this workflow manually from the Actions tab
-  workflow_dispatch:
-
-# A workflow run is made up of one or more jobs that can run sequentially or 
in parallel
-jobs:
-  test-melpa:
-    runs-on: ubuntu-latest
-    strategy:
-      fail-fast: false
-      matrix:
-        emacs_version:
-          - 28.1
-          - 28.2
-          - 29.1
-          - 29.2
-        ignore_warnings:
-          - false
-        warnings_as_errors:
-          - false
-        check:
-          # checkdoc gives too many warnings at the moment, and doesn't deal
-          # with generic functions correctly.
-          - load-file
-          - byte-compile
-          - package-lint
-        file:
-          - '*.el'
-    # Steps represent a sequence of tasks that will be executed as part of the 
job
-    steps:
-      - uses: actions/checkout@v4
-      - uses: purcell/setup-emacs@master
-        with:
-          version: ${{ matrix.emacs_version }}
-      - uses: leotaku/elisp-check@master
-        with:
-          check: ${{ matrix.check }}
-          file: ${{ matrix.file }}
-          ignore_warnings: ${{ matrix.ignore_warnings }}
-          warnings_as_errors: ${{ matrix.warnings_as_errors }}
-  test-ert:
-    runs-on: ubuntu-latest
-    strategy:
-      fail-fast: false
-      matrix:
-        emacs_version:
-          - 28.1
-          - 28.2
-          - 29.1
-          - 29.2
-        ignore_warnings:
-          - false
-        warnings_as_errors:
-          - false
-        check:
-          - ert
-        file:
-          - '*test.el'
-    # Steps represent a sequence of tasks that will be executed as part of the 
job
-    steps:
-      - uses: actions/checkout@v4
-      - uses: purcell/setup-emacs@master
-        with:
-          version: ${{ matrix.emacs_version }}
-      - uses: leotaku/elisp-check@master
-        with:
-          check: ${{ matrix.check }}
-          file: ${{ matrix.file }}
-          ignore_warnings: ${{ matrix.ignore_warnings }}
-          warnings_as_errors: ${{ matrix.warnings_as_errors }}
diff --git a/Eldev b/Eldev
new file mode 100644
index 0000000000..6bbd518bb3
--- /dev/null
+++ b/Eldev
@@ -0,0 +1,8 @@
+; -*- mode: emacs-lisp; lexical-binding: t -*-
+
+;; Uncomment some calls below as needed for your project.
+(eldev-use-package-archive 'gnu-elpa)
+;(eldev-use-package-archive 'nongnu-elpa)
+                                        ;(eldev-use-package-archive 'melpa)
+(setq eldev-standard-excludes `(:or ,eldev-standard-excludes "plz*" 
"utilities/*"))
+(setq checkdoc-force-docstrings-flag nil)

Reply via email to