emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/llm 5c17623593: Enable integration tests by using secre


From: ELPA Syncer
Subject: [elpa] externals/llm 5c17623593: Enable integration tests by using secret-based env. variables (#101)
Date: Sat, 9 Nov 2024 21:58:18 -0500 (EST)

branch: externals/llm
commit 5c176235931ec048b7069cb6c3ce7646a786bb76
Author: Andrew Hyatt <ahyatt@gmail.com>
Commit: GitHub <noreply@github.com>

    Enable integration tests by using secret-based env. variables (#101)
---
 .github/workflows/ci.yaml | 28 +++++++++++++++++++++++++++-
 llm-integration-test.el   |  2 +-
 2 files changed, 28 insertions(+), 2 deletions(-)

diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml
index b9a8ee8a45..0deb80a7d0 100644
--- a/.github/workflows/ci.yaml
+++ b/.github/workflows/ci.yaml
@@ -8,7 +8,7 @@ on:
     branches: [ "*" ]
 
 jobs:
-  test:
+  fast-tests:
     runs-on: ubuntu-latest
     environment: Continuous Integration
     strategy:
@@ -19,6 +19,8 @@ jobs:
           - 28.2
           - 29.1
           - 29.2
+          - 29.3
+          - 29.4
     steps:
     - name: Set up Emacs
       uses: jcs090218/setup-emacs@master
@@ -40,5 +42,29 @@ jobs:
         eldev -p -dtT lint
 
     - name: Test the project
+      # We don't set up the env variables so no integration tests will be run
+      run: |
+        eldev -p -dtT test
+  integration-tests:
+    runs-on: ubuntu-latest
+    environment: Continuous Integration
+    steps:
+    - name: Set up Emacs
+      uses: jcs090218/setup-emacs@master
+      with:
+        version: 29.4
+
+    - name: Install Eldev
+      uses: emacs-eldev/setup-eldev@v1
+
+    - name: Check out the source code
+      uses: actions/checkout@v4
+
+    - name: Test the project
+      env:
+        OPENAI_KEY: ${{ secrets.OPENAI_KEY }}
+        ANTHROPIC_KEY: ${{ secrets.ANTHROPIC_KEY }}
+        # I can't seem to get Gemini to stop rate limiting me, temporarily 
disabling.
+        # GEMINI_KEY: ${{ secrets.GEMINI_KEY }}
       run: |
         eldev -p -dtT test
diff --git a/llm-integration-test.el b/llm-integration-test.el
index 43ed9860ff..56f98145d4 100644
--- a/llm-integration-test.el
+++ b/llm-integration-test.el
@@ -99,7 +99,7 @@
          ;; The free Azure tier has extremely restrictive rate limiting.
          (sleep-for (string-to-number (or (getenv "AZURE_SLEEP") "60"))))
         ((member (type-of provider) '(llm-gemini llm-vertex))
-         (sleep-for 15))))
+         (sleep-for 30))))
 
 (defun llm-integration-test-string-eq (target actual)
   "Test that TARGET approximately equals ACTUAL.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]